Part Number Hot Search : 
12105 IRF95 IRF95 20039WS UDN2981A 42S16 AE400 B1030
Product Description
Full Text Search
 

To Download EVAL-ADAU1382Z Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 Low Noise Stereo Codec with Recording and Playback Processing ADAU1382
FEATURES
24-bit stereo audio ADC and DAC 400 mW speaker amplifier (into 8 load) Built-in sound engine for audio processing Wind noise filter Automatic level control (ALC) 5-band equalizer, including notch filter Sampling rates from 8 kHz to 96 kHz Stereo pseudo differential microphone input Optional stereo digital microphone input pulse-density modulation (PDM) Stereo line output PLL supporting a range of input clock rates Analog and digital I/O 1.8 V to 3.3 V Software control via SigmaStudio graphical user interface Software-controllable, clickless mute Software register and hardware pin standby mode 32-lead, 5 mm x 5 mm LFCSP
GENERAL DESCRIPTION
The ADAU1382 is a low power, 24-bit stereo audio codec. The low noise DAC and ADC support sample rates from 8 kHz to 96 kHz. Low current draw and power saving modes make the ADAU1382 ideal for battery-powered audio applications. A configurable sound engine provides enhanced record and playback processing to improve overall audio quality. The record path includes two digital stereo microphone inputs and an analog stereo input path. The analog inputs can be configured for either a pseudo differential or a single-ended stereo source. A dedicated analog beep input signal can be mixed into any output path. The ADAU1382 includes a stereo line output and speaker driver, which makes the device capable of supporting dynamic speakers. The serial control bus supports the I2C(R) or SPI protocols, and the serial audio bus is programmable for I2S, left-justified, rightjustified, or TDM mode. A programmable PLL supports flexible clock generation for all standard rates and available master clocks from 11 MHz to 20 MHz.
DVDDOUT
APPLICATIONS
Digital still cameras Digital video cameras
FUNCTIONAL BLOCK DIAGRAM
AGND1 AGND2 AVDD1 AVDD2 IOVDD DGND CM
REGULATOR BEEP PGA
ADAU1382
SOUND ENGINE
LMIC/LMICN/ MICD1 PGA LMICP LEFT ADC DECIMATION FILTERS WIND NOISE NOTCH FILTER RMIC/RMICN/ MICD2 PGA RMICP PDN MICBIAS MICROPHONE BIAS PLL RIGHT ADC EQUALIZER DIGITAL VOLUME CONTROL AUTOMATIC LEVEL CONTROL SERIAL DATA INPUT/OUTPUT PORTS I2C/SPI CONTROL PORT SPP RIGHT DAC SPN AOUTL LEFT DAC OUTPUT MIXER AOUTR
ADC_SDATA/ GPIO1
LRCLK/GPIO3
DAC_SDATA/ GPIO0
BCLK/GPIO2
SCL/CCLK
MCKI
ADDR1/CLATCH
ADDR0/CDATA
SDA/COUT
Figure 1.
Rev. 0
Information furnished by Analog Devices is believed to be accurate and reliable. However, no responsibility is assumed by Analog Devices for its use, nor for any infringements of patents or other rights of third parties that may result from its use. Specifications subject to change without notice. No license is granted by implication or otherwise under any patent or patent rights of Analog Devices. Trademarks and registered trademarks are the property of their respective owners.
One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A. Tel: 781.329.4700 www.analog.com Fax: 781.461.3113 (c)2009 Analog Devices, Inc. All rights reserved.
08427-001
ADAU1382 TABLE OF CONTENTS
Features .............................................................................................. 1 Applications ....................................................................................... 1 General Description ......................................................................... 1 Functional Block Diagram .............................................................. 1 Revision History ............................................................................... 3 Specifications..................................................................................... 4 Record Side Performance Specifications ................................... 4 Output Side Performance Specifications ................................... 6 Power Supply Specifications........................................................ 8 Typical Power Management Measurements ............................. 9 Digital Filters ................................................................................. 9 Digital Input/Output Specifications......................................... 10 Digital Timing Specifications ................................................... 11 Absolute Maximum Ratings.......................................................... 14 Thermal Resistance .................................................................... 14 ESD Caution ................................................................................ 14 Pin Configuration and Function Descriptions ........................... 15 Typical Performance Characteristics ........................................... 17 System Block Diagrams ................................................................. 20 Theory of Operation ...................................................................... 24 Startup, Initialization, and Power ................................................. 25 Power-Up Sequence ................................................................... 25 Clock Generation and Management ........................................ 26 Enabling Digital Power to Functional Subsystems ................ 26 Setting Up the Sound Engine .................................................... 26 Power Reduction Modes............................................................ 26 Power-Down Sequence .............................................................. 26 Clocking and Sampling Rates ....................................................... 27 Core Clock ................................................................................... 27 Sampling Rates ............................................................................ 27 PLL ............................................................................................... 28 Record Signal Path.......................................................................... 30 Input Signal Path ........................................................................ 30 Analog-to-Digital Converters................................................... 31 Digital Automatic Level Control (ALC).................................. 31 Playback Signal Path ...................................................................... 32 Output Signal Paths ................................................................... 32 Digital-to-Analog Converters................................................... 32 Line Outputs ............................................................................... 32 Speaker Output ........................................................................... 32 Control Ports ................................................................................... 33 I2C Port ........................................................................................ 33 SPI Port ........................................................................................ 36 Memory and Register Access .................................................... 36 Serial Data Input/Output Ports .................................................... 38 TDM Modes ................................................................................ 38 General-Purpose Input/Outputs .................................................. 40 Sound Engine .................................................................................. 41 Signal Processing ........................................................................ 41 Processing Flow .......................................................................... 41 Programming .............................................................................. 41 Parameter Memory .................................................................... 41 Applications Information .............................................................. 42 Power Supply Bypass Capacitors .............................................. 42 GSM Noise Filter ........................................................................ 42 Grounding ................................................................................... 42 Speaker Driver Supply Trace (AVDD2) .................................. 42 Exposed Pad PCB Design ......................................................... 42 Control Register Map ..................................................................... 43 Clock Management, Internal Regulator, and PLL Control ... 44 Record Path Configuration ....................................................... 48 Serial Port Configuration .......................................................... 53 Audio Converter Configuration ............................................... 58 Playback Path Configuration .................................................... 63
Rev. 0 | Page 2 of 84
ADAU1382
Pad Configuration.......................................................................70 Digital Subsystem Configuration..............................................76 Outline Dimensions ........................................................................ 83 Ordering Guide ........................................................................... 83
REVISION HISTORY
10/09--Revision 0: Initial Version
Rev. 0 | Page 3 of 84
ADAU1382 SPECIFICATIONS
Performance of all channels is identical, exclusive of the interchannel gain mismatch and interchannel phase deviation specifications. Supply voltages AVDD = AVDD1 = AVDD2 = I/O supply = 3.3 V, digital supply = 1.5 V, unless otherwise noted; temperature = 25C; master clock (MCLK) = 12.288 MHz (fS = 48 kHz, 256 x fS mode); input sample rate = 48 kHz; measurement bandwidth = 20 Hz to 20 kHz; word width = 24 bits; load capacitance (digital output) = 20 pF; load current (digital output) = 2 mA; high level input voltage = 0.7 x IOVDD; and low level input voltage = 0.3 x IOVDD. All power management registers are set to their default states.
RECORD SIDE PERFORMANCE SPECIFICATIONS
Specifications guaranteed at 25C (ambient). Table 1.
Parameter ANALOG-TO-DIGITAL CONVERTERS ADC Resolution Digital Attenuation Step Digital Attenuation Range INPUT RESISTANCE Noninverting Inputs PGA (LMICP, RMICP) Inverting Inputs PGA (LMICN, RMICN) Test Conditions/Comments All ADCs Min Typ 24 0.375 95 500 62 32 22 14 10 8 5 4 20 9 6 3.5 50 2 2 2 Max Unit Bits dB dB k k k k k k k k k k k k k k k k k
All gain settings 0 dB gain 6 dB gain 10 dB gain 14 dB gain 17 dB gain 20 dB gain 26 dB gain 32 dB gain 0 dB 6 dB 10 dB 14 dB -23 dB 20 dB 26 dB 32 dB
Beep Input PGA
SINGLE-ENDED MICROPHONE INPUT TO ADC PATH Full-Scale Input Voltage (0 dB)
Dynamic Range With A-Weighted Filter (RMS) No Filter (RMS) Total Harmonic Distortion + Noise
Scales linearly with AVDD AVDD = 1.8 V AVDD = 3.3 V -60 dB input AVDD = 1.8 V AVDD = 3.3 V AVDD = 1.8 V AVDD = 3.3 V -3 dBFS AVDD = 1.8 V AVDD = 3.3 V AVDD = 1.8 V AVDD = 3.3 V AVDD = 1.8 V AVDD = 3.3 V
Rev. 0 | Page 4 of 84
AVDD/3.3 0.55 (1.56) 1.0 (2.83) 96 99.2 92 96.5 -88 -90 96 100 92 97
V rms V rms (V p-p) V rms (V p-p) dB dB dB dB dB dB dB dB dB dB
94 92
Signal-to-Noise Ratio With A-Weighted Filter (RMS) No Filter (RMS)
ADAU1382
Parameter Left/Right Microphone PGA Gain Range Left/Right Microphone PGA Mute Attenuation Interchannel Gain Mismatch Offset Error Gain Error Interchannel Isolation Power Supply Rejection Ratio Test Conditions/Comments AVDD = 3.3 V AVDD = 3.3 V; mute set by Register 0x400E, Bit 1, and Register 0x400F, Bit 1 AVDD = 3.3 V AVDD = 3.3 V AVDD = 3.3 V AVDD = 3.3 V CM capacitor = 10 F AVDD = 3.3 V, 100 mV p-p at 217 Hz AVDD = 3.3 V, 100 mV p-p at 1 kHz Min 0 Typ Max 32 Unit dB dB mdB mV % dB dB dB
-98 50 0.25 -1 -98 -55 -55
DIFFERENTIAL MICROPHONE INPUT TO ADC PATH Full-Scale Input Voltage (0 dB)
Dynamic Range With A-Weighted Filter (RMS) No Filter (RMS) Total Harmonic Distortion + Noise
Scales linearly with AVDD AVDD = 1.8 V AVDD = 3.3 V -60 dB input AVDD = 1.8 V AVDD = 3.3 V AVDD = 1.8 V AVDD = 3.3 V -3 dBFS AVDD = 1.8 V AVDD = 3.3 V AVDD = 1.8 V AVDD = 3.3 V AVDD = 1.8 V AVDD = 3.3 V AVDD = 3.3 V; mute set by Register 0x400E, Bit 1, and Register 0x400F, Bit 1 AVDD = 3.3 V AVDD = 3.3 V AVDD = 3.3 V AVDD = 3.3 V AVDD = 3.3 V, 100 mV rms, 1 kHz AVDD = 3.3 V, 100 mV rms, 20 kHz Scales linearly with AVDD AVDD = 1.8 V AVDD = 3.3 V -3 dBFS input, measured at AOUTL pin, beep gain set to 0 dB AVDD = 1.8 V AVDD = 3.3 V AVDD = 1.8 V AVDD = 3.3 V AVDD = 1.8 V AVDD = 3.3 V
AVDD/3.3 0.55 (1.56) 1.0 (2.83) 96 99.2 92 96.5 -84 -85 96 100 92 97 -98 50 0.25 -1 -85 -60 -45 AVDD/3.3 0.55 (1.56) 1.0 (2.83)
V rms V rms (V p-p) V rms (V p-p) dB dB dB dB dB dB dB dB dB dB dB mdB mV % dB dB dB V rms V rms (V p-p) V rms (V p-p)
94 92
Signal-to-Noise Ratio With A-Weighted Filter (RMS) No Filter (RMS) Left/Right Microphone PGA Mute Attenuation Interchannel Gain Mismatch Offset Error Gain Error Interchannel Isolation Common-Mode Rejection Ratio BEEP TO LINE OUTPUT PATH Full-Scale Input Voltage (0 dB)
Total Harmonic Distortion + Noise
-88 -88 99 105 96 102
dB dB dB dB dB dB
Signal-to-Noise Ratio With A-Weighted Filter (RMS) No Filter (RMS)
Rev. 0| Page 5 of 84
ADAU1382
Parameter Dynamic Range With A-Weighted Filter (RMS) No Filter (RMS) Beep Input Mute Attenuation Offset Error Gain Error Interchannel Gain Mismatch Beep Input PGA Gain Range Beep Playback Mixer Gain Range Power Supply Rejection Ratio Test Conditions/Comments -60 dB input AVDD = 1.8 V AVDD = 3.3 V AVDD = 1.8 V AVDD = 3.3 V AVDD = 3.3 V; mute set by Register 0x4008, Bit 3 AVDD = 3.3 V AVDD = 3.3 V AVDD = 3.3 V AVDD = 3.3 V CM capacitor = 10 F AVDD = 3.3 V, 100 mV p-p at 217 Hz AVDD = 3.3 V, 100 mV p-p at 1 kHz Microphone bias enabled AVDD = 1.8 V, low bias AVDD = 3.3 V, low bias AVDD = 1.8 V, high bias AVDD = 3.3 V, high bias AVDD = 3.3 V, high bias, high performance AVDD = 3.3 V, 20 Hz to 20 kHz High bias, high performance High bias, low performance Low bias, high performance Low bias, low performance AVDD = 1.8 V, 20 Hz to 20 kHz High bias, high performance High bias, low performance Low bias, high performance Low bias, low performance Min Typ 99 105 96 102 -90 10 -0.3 30 -23 -15 -58 -72 +32 +6 Max Unit dB dB dB dB dB mV dB mdB dB dB dB dB
MICROPHONE BIAS Bias Voltage 0.65 x AVDD 0.90 x AVDD Bias Current Source Noise in the Signal Bandwidth
1.17 2.145 1.62 2.97 5
V V V V mA
39 78 25 35 35 45 23 23
nVHz nVHz nVHz nVHz nVHz nVHz nVHz nVHz
OUTPUT SIDE PERFORMANCE SPECIFICATIONS
Specifications guaranteed at 25C (ambient). Table 2.
Parameter DIGITAL-TO-ANALOG CONVERTERS DAC Resolution Digital Attenuation Step Digital Attenuation Range DAC TO LINE OUTPUT PATH Full-Scale Output Voltage (0 dB) Test Conditions/Comments All DACs Min Typ 24 0.375 95 AVDD/3.3 0.55 (1.56) 1.0 (2.83) -85 -85 Max Unit Bits dB dB V rms V rms (V p-p) V rms (V p-p) dB dB
Line Output Mute Attenuation, DAC to Mixer Path Muted Line Output Mute Attenuation, Line Output Muted
Scales linearly with AVDD AVDD = 1.8 V AVDD = 3.3 V AVDD = 3.3 V; mute set by Register 0x401C, Bit 5, and Register 0x401E, Bit 6 AVDD = 3.3 V; mute set by Register 0x4025, Bit 1, and Register 0x4026, Bit 1
Rev. 0 | Page 6 of 84
ADAU1382
Parameter Dynamic Range With A-Weighted Filter (RMS) No Filter (RMS) Total Harmonic Distortion + Noise Test Conditions/Comments -60 dB input AVDD = 1.8 V AVDD = 3.3 V AVDD = 1.8 V AVDD = 3.3 V -3 dBFS AVDD = 1.8 V AVDD = 3.3 V AVDD = 1.8 V AVDD = 3.3 V AVDD = 1.8 V AVDD = 3.3 V CM capacitor = 10 F AVDD = 3.3 V, 100 mV p-p at 217 Hz AVDD = 3.3 V, 100 mV p-p at 1 kHz AVDD = 3.3 V AVDD = 3.3 V AVDD = 3.3 V PO = output power Scales linearly with AVDD AVDD = 1.8 V AVDD = 3.3 V Total Harmonic Distortion + Noise 4 Load 8 Load AVDD = 1.8 V, PO = 50 mW AVDD = 3.3 V, PO = 175 mW AVDD = 1.8 V, PO = 50 mW AVDD = 3.3 V, PO = 175 mW AVDD = 3.3 V, PO = 330 mW AVDD = 3.3 V, PO = 440 mW -60 dB input AVDD = 1.8 V AVDD = 3.3 V AVDD = 1.8 V AVDD = 3.3 V AVDD = 1.8 V AVDD = 3.3 V AVDD = 1.8 V AVDD = 3.3 V CM capacitor = 10 F AVDD = 3.3 V,100 mV p-p at 217 Hz AVDD = 3.3 V, 100 mV p-p at 1 kHz AVDD = 3.3 V Mute set by Register 0x401F, Bit 0 PO = output power Scales linearly with AVDD AVDD = 1.8 V AVDD = 3.3 V Min Typ 99 103 97 100 -88 -88 99 103 97 100 -55 -63 -1 50 10 AVDD/1.65 1.1 (3.12) 2.0 (5.66) -60 -60 -60 -60 -60 -16 100 105 98 103 100 105 98 103 -55 -55 2 -90 Max Unit dB dB dB dB dB dB dB dB dB dB dB dB dB dB mdB mV V rms V rms (V p-p) V rms (V p-p) dB dB dB dB dB dB dB dB dB dB dB dB dB dB dB dB mV dB
94 92
Signal-to-Noise Ratio With A-Weighted Filter (RMS) No Filter (RMS) Power Supply Rejection Ratio
Gain Error Interchannel Gain Mismatch Offset Error DAC TO SPEAKER OUTPUT PATH Differential Full-Scale Output Voltage (0 dB)
Dynamic Range With A-Weighted Filter (RMS) No Filter (RMS) Signal-to-Noise Ratio With A-Weighted Filter (RMS) No Filter (RMS) Power Supply Rejection Ratio
94 92
Differential Offset Error Mono Mixer Mute Attenuation, DAC to Mixer Path Muted BEEP TO SPEAKER OUTPUT PATH Differential Full-Scale Output Voltage (0 dB)
AVDD/1.65 1.1 (3.12) 2.0 (5.66)
V rms V rms (V p-p) V rms (V p-p)
Rev. 0| Page 7 of 84
ADAU1382
Parameter Total Harmonic Distortion + Noise Test Conditions/Comments 8 , 1 nF load, AVDD = 1.8 V, PO = 50 mW AVDD = 3.3 V, PO = 175 mW -60 dB input AVDD = 1.8 V AVDD = 3.3 V AVDD = 1.8 V AVDD = 3.3 V AVDD = 1.8 V AVDD = 3.3 V AVDD = 1.8 V AVDD = 3.3 V CM capacitor = 10 F 100 mV p-p at 217 Hz 100 mV p-p at 1 kHz Mute set by Register 0x401F, Bit 0 Min Typ -60 -60 97 103 94 100 98 103 96 101 -57 -60 2 -90 Max Unit dB dB dB dB dB dB dB dB dB dB dB dB mV dB
Dynamic Range With A-Weighted Filter (RMS) No Filter (RMS) Signal-to-Noise Ratio With A-Weighted Filter (RMS) No Filter (RMS) Power Supply Rejection Ratio
Differential Offset Error Mono Mixer Mute Attenuation, Beep to Mixer Path Muted REFERENCE (CM PIN) Common-Mode Reference Output
AVDD/2
V
POWER SUPPLY SPECIFICATIONS
AVDD1 and AVDD2 must always be equal. Power supply measurements are taken with the sound engine processing path enabled. Table 3.
Parameter AVDD1, AVDD2 IOVDD Digital I/O Current (IOVDD = 3.3 V) Slave Mode, Analog I/O, 12.288 MHz External MCLK Input Test Conditions/Comments Min 1.8 1.63 Typ 3.3 3.3 0.20 0.35 0.04 1.25 2.50 0.22 0.10 0.18 0.02 0.68 1.33 0.12 Max 3.65 3.65 Unit V V mA mA mA mA mA mA mA mA mA mA mA mA
20 pF capacitive load on all digital pins fS = 48 kHz fS = 96 kHz fS = 8 kHz fS = 48 kHz fS = 96 kHz fS = 8 kHz 20 pF capacitive load on all digital pins fS = 48 kHz fS = 96 kHz fS = 8 kHz fS = 48 kHz fS = 96 kHz fS = 8 kHz See Table 4
Master Mode, MCKO Disabled
Digital I/O Current (IOVDD = 1.8 V) Slave Mode, Analog I/O, 12.288 MHz External MCLK Input
Master Mode, MCKO Disabled
Analog Current (AVDD)
Rev. 0 | Page 8 of 84
ADAU1382
TYPICAL POWER MANAGEMENT MEASUREMENTS
Master clock = 12.288 MHz, PLL is active in integer mode at a 256 x fS input rate for fS = 48 kHz, analog and digital input tones are -1 dBFS with a frequency of 1 kHz. Analog input and output are simultaneously active. Pseudo differential stereo input is routed to ADCs, and DACs are routed to stereo line output with a 16 k load. ADC input at -1 dBFS, DAC input at 0 dBFS. The speaker output is disabled. The serial port is configured in slave mode. The beep path is disabled. The sound engine processing path is enabled. Current measurements are given in units of mA rms. Table 4. Mixer Boost and Power Management Conditions
Operating Voltage AVDD = IOVDD = 3.3 V Power Management Mode 1 Normal (default) Mixer Boost Mode 2 Normal operation Boost Level 1 Boost Level 2 Boost Level 3 Normal operation Boost Level 1 Boost Level 2 Boost Level 3 Normal operation Boost Level 1 Boost Level 2 Boost Level 3 Normal operation Boost Level 1 Boost Level 2 Boost Level 3 Normal operation Boost Level 1 Boost Level 2 Boost Level 3 Normal operation Boost Level 1 Boost Level 2 Boost Level 3 Normal operation Boost Level 1 Boost Level 2 Boost Level 3 Normal operation Boost Level 1 Boost Level 2 Boost Level 3 Typical AVDD Current Consumption (mA) 16.84 16.88 16.92 17.00 15.66 15.68 15.70 15.75 17.43 17.50 17.53 17.63 16.25 16.28 16.31 16.38 15.15 15.19 15.23 15.30 14.03 14.05 14.07 14.12 15.71 15.76 15.81 15.89 14.59 14.62 14.65 14.71 Typical ADC THD + N (dB) 88.5 88.5 88.5 88.5 88.0 88.0 88.0 88.0 88.5 88.5 88.5 88.5 89.0 89.0 89.0 89.0 88.5 88.5 88.5 88.5 86.5 86.5 86.5 86.5 88.5 88.5 88.5 88.5 88.0 88.0 88.0 88.0 Typical Line Output THD + N (dB) 93.0 93.0 93.0 93.0 87.5 87.5 87.5 87.5 94.5 94.5 94.5 94.5 90.5 90.5 90.5 90.5 89.5 89.5 89.5 89.5 85.5 85.5 85.5 85.5 90.5 90.5 90.5 90.5 88.0 88.0 88.0 88.0
Extreme power saving
Enhanced performance
Power saving
AVDD = IOVDD = 1.8 V
Normal (default)
Extreme power saving
Enhanced performance
Power saving
1 2
Set by Register 0x4009, Bits[4:1], and Register 0x4029, Bits[5:2]. Set by Register 0x4009, Bits[6:5].
DIGITAL FILTERS
Table 5.
Parameter ADC DECIMATION FILTER Pass Band Pass-Band Ripple Transition Band Stop Band Stop-Band Attenuation Group Delay Mode All modes, typ value is for 48 kHz Factor 0.4375 x fS 0.5 x fS 0.5625 x fS 70 22.9844/fS
Rev. 0| Page 9 of 84
Min
Typ 21 0.015 24 27 479
Max
Unit kHz dB kHz kHz dB s
ADAU1382
Parameter DAC INTERPOLATION FILTER Pass Band Pass-Band Ripple Transition Band Stop Band Stop-Band Attenuation Group Delay Mode 48 kHz mode, typ value is for 48 kHz 96 kHz mode, typ value is for 96 kHz 48 kHz mode, typ value is for 48 kHz 96 kHz mode, typ value is for 96 kHz 48 kHz mode, typ value is for 48 kHz 96 kHz mode, typ value is for 96 kHz 48 kHz mode, typ value is for 48 kHz 96 kHz mode, typ value is for 96 kHz 48 kHz mode, typ value is for 48 kHz 96 kHz mode, typ value is for 96 kHz 48 kHz mode, typ value is for 48 kHz 96 kHz mode, typ value is for 96 kHz Factor 0.4535 x fS 0.3646 x fS Min Typ 22 69 0.01 0.05 0.5 x fS 0.5 x fS 0.5465 x fS 0.6354 x fS 70 70 25/fS 11/fS 521 115 24 48 26 61 Max Unit kHz kHz dB dB kHz kHz kHz kHz dB dB s s
35
DIGITAL INPUT/OUTPUT SPECIFICATIONS
-25C < TA < +85C, IOVDD = 1.62 V to 3.63 V, unless otherwise specified. Table 6.
Parameter HIGH LEVEL INPUT VOLTAGE (VIH) LOW LEVEL INPUT VOLTAGE (VIL) Conditions/Comments IOVDD 2.97 V 1.8 V IOVDD 2.97 V IOVDD < 1.8 V IIH at VIH = 2.4 V IIL at VIL = 0.8 V IIL of MCKI IIH with internal pull-up IIL with internal pull-down IIH with internal pull-up IIL with internal pull-down For low drive strength, IOH = 2 mA and IOL = 2 mA at IOVDD = 3.3 V, IOH = 0.6 mA and IOL = 0.6 mA at IOVDD = 1.8 V; for high drive strength, IOH = 3 mA and IOL = 3 mA at IOVDD = 3.3 V, IOH = 0.9 mA and IOL = 0.9 mA at IOVDD = 1.8 V For low drive strength, IOH = 2 mA and IOL = 2 mA at IOVDD = 3.3 V, IOH = 0.6 mA and IOL = 0.6 mA at IOVDD = 1.8 V; for high drive strength, IOH = 3 mA and IOL = 3 mA at IOVDD = 3.3 V, IOH = 0.9 mA and IOL = 0.9 mA at IOVDD = 1.8 V Min 0.7 x IOVDD Typ Max 0.3 x IOVDD 0.2 x IOVDD 0.1 x IOVDD 0.17 0.17 -7 0.7 -7 5 0.18 IOVDD - 0.4 Unit V V V V A A A A A A A V
INPUT LEAKAGE
HIGH LEVEL OUTPUT VOLTAGE (VOH)
LOW LEVEL OUTPUT VOLTAGE (VOL)
0.4
V
INPUT CAPACITANCE
5
pF
Rev. 0 | Page 10 of 84
ADAU1382
DIGITAL TIMING SPECIFICATIONS
-25C < TA < +85C, IOVDD = 1.62 V to 3.63 V, unless otherwise specified. Table 7. Digital Timing
Parameter MASTER CLOCK tMP Duty Cycle SERIAL PORT tBIL tBIH tLIS tLIH tSIS tSIH tSODM SPI PORT fCCLK,R fCCLK,R fCCLK,W fCCLK,W tCCPL tCCPH tCLS tCLH tCLPH tCDS tCDH tCOD I2C PORT fSCL tSCLH tSCLL tSCS tSCH tDS tSCR tSCF tSDR tSDF tBFT DIGITAL MICROPHONE tDCF tDCR tDDV tDDH tMIN 50 30 10 10 5 5 5 5 70 5 10 25 25 10 10 10 5 10 5 5 70 40 400 0.6 1.3 0.6 0.6 100 300 300 300 300 0.6 10 10 30 12 Limit tMAX 90.9 70 Unit ns % ns ns ns ns ns ns ns MHz MHz MHz MHz ns ns ns ns ns ns ns ns kHz s s s s ns ns ns ns ns s ns ns ns ns Description Master clock (MCLK) period (that is, period of the signal input to MCKI).
BCLK pulse width low. BCLK pulse width high. LRCLK setup. Time to BCLK rising. LRCLK hold. Time from BCLK rising. DAC_SDATA setup. Time to BCLK rising. DAC_SDATA hold. Time from BCLK rising. ADC_SDATA delay. Time from BCLK falling in master mode. CCLK frequency, read operation, IOVDD = 1.8 V 10%. CCLK frequency, read operation, IOVDD = 3.3 V 10%. CCLK frequency, write operation, IOVDD = 1.8 V 10%. CCLK frequency, write operation, IOVDD = 3.3 V 10%. CCLK pulse width low. CCLK pulse width high. CLATCH setup. Time to CCLK rising. CLATCH hold. Time from CCLK rising. CLATCH pulse width high. CDATA setup. Time to CCLK rising. CDATA hold. Time from CCLK rising. COUT delay from CCLK edge to valid data, IOVDD = 1.8 V 10%. COUT delay from CCLK edge to valid data, IOVDD = 3.3 V 10%. SCL frequency. SCL high. SCL low. Setup time; relevant for repeated start condition. Hold time. After this period, the first clock is generated. Data setup time. SCL rise time. SCL fall time. SDA rise time. SDA fall time. Bus-free time. Time between stop and start. RL = 1 M, CL = 14 pF. Digital microphone clock fall time. Digital microphone clock rise time. Digital microphone delay time for valid data. Digital microphone delay time for data three-stated.
22 0
Rev. 0| Page 11 of 84
ADAU1382
Digital Timing Diagrams
tBIH
BCLK
tLIH
tBIL tLIS
LRCLK
tSIS
DAC_SDATA LEFT-JUSTIFIED MODE MSB MSB - 1
tSIH tSIS
MSB
DAC_SDATA I2S MODE
tSIH
DAC_SDATA RIGHT-JUSTIFIED MODE 8-BIT CLOCKS (24-BIT DATA) 12-BIT CLOCKS (20-BIT DATA) 14-BIT CLOCKS (18-BIT DATA) 16-BIT CLOCKS (16-BIT DATA)
08427-002
tSIS
MSB
tSIS
LSB
tSIH
tSIH
Figure 2. Serial Input Port Timing
tBIH
BCLK
tBIL
LRCLK
ADC_SDATA LEFT-JUSTIFIED MODE
tSODM
MSB MSB - 1
tSODM
ADC_SDATA I2S MODE MSB
ADC_SDATA RIGHT-JUSTIFIED MODE 8-BIT CLOCKS (24-BIT DATA) 12-BIT CLOCKS (20-BIT DATA) 14-BIT CLOCKS (18-BIT DATA) 16-BIT CLOCKS (16-BIT DATA)
tSODM
MSB LSB
Figure 3. Serial Output Port Timing
Rev. 0 | Page 12 of 84
08427-003
ADAU1382
tCLS tCCPL
CLATCH CCLK CDATA
tCLH tCLPH tCCPH
tCDH tCDS
COUT
08427-004 08427-005 08427-106
tCOD
Figure 4. SPI Port Timing
tSCH
SDA
tSDR
tDS
tSCH
tSDF tSCR
tSCLH
SCL
tSCLL
tSCF
2
tSCS
tBFT
Figure 5. I C Port Timing
tDCF
tDCR
CLK
tDDH
tDDH tDDV tDDV
DATA1/ DATA2 DATA1
DATA2
DATA1
DATA2
Figure 6. Digital Microphone Timing
Rev. 0| Page 13 of 84
ADAU1382 ABSOLUTE MAXIMUM RATINGS
Table 8.
Parameter Power Supply (AVDD1 = AVDD2) Input Current (Except Supply Pins) Analog Input Voltage (Signal Pins) Digital Input Voltage (Signal Pins) Operating Temperature Range (Case) Storage Temperature Range Rating -0.3 V to +3.9 V 20 mA -0.3 V to VDD + 0.3 V -0.3 V to VDD + 0.3 V -25C to +85C -65C to +150C
THERMAL RESISTANCE
In Table 9, JA is the junction-to-ambient thermal resistance, JB is the junction-to-board thermal resistance, JC is the junction-to-case thermal resistance, JB is the in-use junction-to-top of package thermal resistance, and JT is the in-use junction-to-board thermal resistance. All characteristics are for a 4-layer board. Table 9. Thermal Resistance
Package Type 32-Lead LFCSP JA 35 JB 19 JC 2.5 JB 18 JT 0.3 Unit C/W
Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only; functional operation of the device at these or any other conditions above those indicated in the operational section of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
ESD CAUTION
Rev. 0 | Page 14 of 84
ADAU1382 PIN CONFIGURATION AND FUNCTION DESCRIPTIONS
MICBIAS BEEP LMIC/LMICN/MICD1 LMICP RMICP RMIC/RMICN/MICD2 AOUTL AOUTR
32 31 30 29 28 27 26 25
CM PDN AGND1 AVDD1 DVDDOUT DGND GPIO SCL/CCLK
1 2 3 4 5 6 7 8
PIN 1 INDICATOR
ADAU1382
TOP VIEW (Not to Scale)
24 23 22 21 20 19 18 17
NC AGND2 SPP NC SPN AVDD2 MCKO MCKI
Figure 7. 32-Lead LFCSP Pin Configuration
Table 10. Pin Function Descriptions
Pin No. 1 Mnemonic CM Type 1 A_OUT Description VDD/2 V Common-Mode Reference. A 10 F to 47 F decoupling capacitor should be connected between this pin and ground to reduce crosstalk between the ADCs and DACs. The material of the capacitors is not critical. This pin can be used to bias external analog circuits, as long as they are not drawing current from CM (for example, the noninverting input of an op amp). Power-Down. Setting this pin to 0 powers down the chip. Resides in AVDD1 domain. Analog Ground. Analog Power Supply. Should be equivalent to AVDD2. Digital Core Supply Decoupling Point. The digital supply is generated from an on-board regulator and does not require an external supply. DVDDOUT should be decoupled to DGND with a 100 nF capacitor. Digital Ground. Dedicated General-Purpose Input/Output. I2C Clock/SPI Clock. I2C Data/SPI Data Output. I2C Address 0/SPI Data Input. I2C Address 1/SPI Latch Signal. Supply for Digital Input and Output Pins. The digital output pins are supplied from IOVDD, which sets the highest allowed input voltage for the digital input pins. The current draw of this pin is variable because it is dependent on the loads of the digital outputs. IOVDD should be decoupled to DGND with a 100 nF capacitor. DAC Serial Input Data/General-Purpose Input and Output. ADC Serial Output Data/General-Purpose Input and Output. Serial Data Port Bit Clock/General-Purpose Input and Output. Serial Data Port Frame Clock/General-Purpose Input and Output. Master Clock Input.
Rev. 0| Page 15 of 84
2 3 4 5
PDN AGND1 AVDD1 DVDDOUT
A_IN PWR PWR PWR
6 7 8 9 10 11 12
DGND GPIO SCL/CCLK SDA/COUT ADDR0/CDATA ADDR1/CLATCH IOVDD
PWR D_IO D_IN D_IO D_IN D_IN PWR
13 14 15 16 17
DAC_SDATA/GPIO0 ADC_SDATA/GPIO1 BCLK/GPIO2 LRCLK/GPIO3 MCKI
D_IO D_IO D_IO D_IO D_IN
08427-007
NOTES 1. NC = NO CONNECT. 2. THE EXPOSED PAD IS CONNECTED INTERNALLY TO THE ADAU1382 GROUNDS. FOR INCREASED RELIABILITY OF THE SOLDER JOINTS AND MAXIMUM THERMAL CAPABILITY, IT IS RECOMMENDED THAT THE PAD BE SOLDERED TO THE GROUND PLANE.
SDA/COUT ADDR0/CDATA ADDR1/CLATCH IOVDD DAC_SDATA/GPIO0 ADC_SDATA/GPIO1 BCLK/GPIO2 LRCLK/GPIO3
9 10 11 12 13 14 15 16
ADAU1382
Pin No. 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Mnemonic MCKO AVDD2 SPN NC SPP AGND2 NC AOUTR AOUTL RMIC/RMICN/MICD2 RMICP LMICP LMIC/LMICN/MICD1 BEEP MICBIAS THERM_PAD (Exposed Pad) Type 1 D_OUT PWR A_OUT A_OUT PWR A_OUT A_OUT A_IN A_IN A_IN A_IN A_IN PWR Description Master Clock Output. Analog Power Supply. Should be equivalent to AVDD1. Speaker Amplifier Negative Signal Output. No Connect. Speaker Amplifier Positive Signal Output. Speaker Amplifier Ground. No Connect. Line Output Amplifier, Right Channel. Line Output Amplifier, Left Channel. Right Channel Input from Single-Ended Source/Right Channel Input from Negative Pseudo Differential Source/Digital Microphone Input 2. Right Channel Input from Positive Pseudo Differential Source. Left Channel Input from Positive Pseudo Differential Source. Left Channel Input from Single-Ended Source/Left Channel Input from Negative Pseudo Differential Source/Digital Microphone Input 1. Beep Signal Input. Microphone Bias. Exposed Pad. The exposed pad is connected internally to the ADAU1382 grounds. For increased reliability of the solder joints and maximum thermal capability, it is recommended that the pad be soldered to the ground plane.
1
A_OUT = analog output, A_IN = analog input, PWR = power, D_IO = digital input/output, D_OUT = digital output, and D_IN = digital input.
Rev. 0 | Page 16 of 84
ADAU1382 TYPICAL PERFORMANCE CHARACTERISTICS
0 -10 -20 MAGNITUDE (dBFS)
MAGNITUDE (dBFS)
08427-009
0.10 0.08 0.06 0.04 0.02 0 -0.02 -0.04 -0.06 -0.08 -0.10 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 0 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45 0.50 FREQUENCY (NORMALIZED TO fS) FREQUENCY (NORMALIZED TO fS)
08427-012 08427-014
-30 -40 -50 -60 -70 -80 -90 -100
Figure 8. ADC Decimation Filter, 64x Oversampling, Normalized to fS
Figure 11. ADC Decimation Filter Pass-Band Ripple, 128x Oversampling, Normalized to fS
0.04
0 -10
0.02
-20 MAGNITUDE (dBFS) 0 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40
08427-010
MAGNITUDE (dBFS)
-30 -40 -50 -60 -70 -80
0
-0.02
-0.04
-0.06
-90 -100 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 FREQUENCY (NORMALIZED TO fS)
08427-013
FREQUENCY (NORMALIZED TO fS)
Figure 9. ADC Decimation Filter Pass-Band Ripple, 64x Oversampling, Normalized to fS
Figure 12. ADC Decimation Filter, Double-Rate Mode, Normalized to fS
0 -10 -20
MAGNITUDE (dBFS)
0.04
0.02
MAGNITUDE (dBFS)
-30 -40 -50 -60 -70 -80 -90 -100 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
08427-011
0
-0.02
-0.04
-0.06
0
0.05
0.10
0.15
0.20
0.25
0.30
0.35
0.40
FREQUENCY (NORMALIZED TO fS)
FREQUENCY (NORMALIZED TO fS)
Figure 10. ADC Decimation Filter, 128x Oversampling, Normalized to fS
Figure 13. ADC Decimation Filter Pass-Band Ripple, Double-Rate Mode, Normalized to fS
Rev. 0| Page 17 of 84
ADAU1382
0 -10 -20 MAGNITUDE (dBFS)
MAGNITUDE (dBFS)
08427-015
0.05 0.04 0.03 0.02 0.01 0 -0.01 -0.02 -0.03 -0.04 -0.05 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 0 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45 0.50 FREQUENCY (NORMALIZED TO fS) FREQUENCY (NORMALIZED TO fS)
08427-018 08427-020
-30 -40 -50 -60 -70 -80 -90 -100
Figure 14. DAC Interpolation Filter, 64x Oversampling, Normalized to fS
Figure 17. DAC Interpolation Filter Pass-Band Ripple, 128x Oversampling, Normalized to fS
0.20 0.15 0.10
MAGNITUDE (dBFS)
0 -10 -20 MAGNITUDE (dBFS)
08427-016
-30 -40 -50 -60 -70 -80
0.05 0 -0.05 -0.10 -0.15 -0.20 0 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 FREQUENCY (NORMALIZED TO fS)
-90 -100 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 FREQUENCY (NORMALIZED TO fS)
08427-019
Figure 15. DAC Interpolation Filter Pass-Band Ripple, 64x Oversampling, Normalized to fS
Figure 18. DAC Interpolation Filter, Double-Rate Mode, Normalized to fS
0 -10 -20
0.20 0.15 0.10
MAGNITUDE (dBFS)
MAGNITUDE (dBFS)
-30 -40 -50 -60 -70 -80 -90 -100 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
08427-017
0.05 0 -0.05 -0.10 -0.15 -0.20 0 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40
FREQUENCY (NORMALIZED TO fS)
FREQUENCY (NORMALIZED TO fS)
Figure 16. DAC Interpolation Filter, 128x Oversampling, Normalized to fS
Figure 19. DAC Interpolation Filter Pass-Band Ripple, Double-Rate Mode, Normalized to fS
Rev. 0 | Page 18 of 84
ADAU1382
0 -10 -20 -30
THD + N (dB)
0
-20
-50 -60 -70 -80 -90 -100
08427-121
THD + N (dB)
-40
-40
-60
-80
-100 1 10 100 600 1 10 SPEAKER OUTPUT POWER (mW) 100
08427-122
SPEAKER OUTPUT POWER (mW)
Figure 20. THD + N vs. Speaker Output Power, 8 Load, 3.3 V Supply
Figure 21. THD + N vs. Speaker Output Power, 8 Load, 1.8 V Supply
Rev. 0| Page 19 of 84
ADAU1382 SYSTEM BLOCK DIAGRAMS
IOVDD 10F 10F AVDD1 10F AVDD2
MICBIAS 0.1F
+
0.1F
MICBIAS
IOVDD
AVDD1
DIFFERENTIAL INPUT (LEFT) 10F 49.9k 10F 49.9k
DVDDOUT
AVDD2
LMIC/LMICN/MICD1 LMICP
+
+
0.1F
ADAU1382
DIFFERENTIAL INPUT (RIGHT) 10F RMIC/RMICN/MICD2 49.9k 10F 49.9k GPIO 10F BEEP EXTERNAL BEEP INPUT 49.9k DAC_SDATA/GPIO0 ADC_SDATA/GPIO1 BCLK/GPIO2 LRCLK/GPIO3 ADDR1/CLATCH ADDR0/CDATA SDA/COUT SCL/CCLK SERIAL DATA GPIO RMICP CM 100nF + 10F 10k
+
+
+
47F 0.1F
0.1F
- +
8 SPEAKER OUT
100pF SPN SPP 10k AOUTL AOUTR 10k STEREO SINGLE-ENDED HEADPHONE OUTPUT 10 220F LEFT_OUT
10k 100pF 10k 10 220F RIGHT_OUT STEREO HEADPHONE AMPLIFIER
10k
MCKI EXTERNAL MCLK SOURCE 49.9k 2.2pF 49.9k MCKO PDN PDN
MCKO
THERM_PAD (EXPOSED PAD)
SYSTEM CONTROLLER
AGND1
AGND2
DGND
Figure 22. System Block Diagram with Differential Inputs
Rev. 0 | Page 20 of 84
08427-021
ADAU1382
IOVDD 10F
+
AVDD1 10F
+
10F AVDD2
+
47F MICBIAS 0.1F
+
0.1F
0.1F
0.1F
0.1F
- +
MICBIAS
IOVDD
AVDD1
MICBIAS 2k ANALOG MIC 1 49.9k 0.1F
DVDDOUT
AVDD2
8 SPEAKER OUT
100pF SPN SPP 10k 10k AOUTL AOUTR STEREO SINGLE-ENDED HEADPHONE OUTPUT 10 220F
+
LMIC/LMICN/MICD1 10F 10F LMICP
LEFT_OUT
ADAU1382
MICBIAS 2k ANALOG MIC 2 49.9k 0.1F RMIC/RMICN/MICD2 10F 10F 10F BEEP EXTERNAL BEEP INPUT 49.9k DAC_SDATA/GPIO0 ADC_SDATA/GPIO1 BCLK/GPIO2 LRCLK/GPIO3 ADDR1/CLATCH ADDR0/CDATA SDA/COUT SCL/CCLK SERIAL DATA GPIO RMICP CM 100nF + 10F GPIO
10k 100pF 10k 10k 10 220F
+
10k
RIGHT_OUT STEREO HEADPHONE AMPLIFIER
MCKI EXTERNAL MCLK SOURCE 49.9k 2.2pF 49.9k MCKO PDN PDN
MCKO
THERM_PAD (EXPOSED PAD)
SYSTEM CONTROLLER
AGND1
AGND2
DGND
Figure 23. System Block Diagram with Analog Microphone Inputs
Rev. 0| Page 21 of 84
08427-022
ADAU1382
IOVDD 10F + 0.1F 10F + 0.1F AVDD1 10F AVDD2 + 47F MICBIAS 0.1F MICBIAS IOVDD AVDD1 DVDDOUT AVDD2 + 0.1F
0.1F
- +
8 SPEAKER OUT
100pF SPN 10k 10k STEREO SINGLE-ENDED HEADPHONE OUTPUT 10 220F + LEFT_OUT
SINGLE-ENDED STEREO INPUT 1k 49.9k 10F 10F RMIC/RMICN/MICD2 49.9k 10F RMICP 10F LMIC/LMICN/MICD1 LMICP
SPP AOUTL AOUTR
ADAU1382
10k 100pF 10k 10k CM 100nF + 10F GPIO STEREO HEADPHONE AMPLIFIER 10 220F + RIGHT_OUT
1k
10k
10F BEEP EXTERNAL BEEP INPUT 49.9k
GPIO DAC_SDATA/GPIO0 ADC_SDATA/GPIO1 BCLK/GPIO2 LRCLK/GPIO3 ADDR1/CLATCH ADDR0/CDATA SDA/COUT SCL/CCLK AGND1 AGND2 DGND
SERIAL DATA
MCKI EXTERNAL MCLK SOURCE 49.9k 2.2pF 49.9k MCKO PDN PDN THERM_PAD (EXPOSED PAD)
SYSTEM CONTROLLER
MCKO
Figure 24. System Block Diagram with Single-Ended Stereo Line Inputs
Rev. 0 | Page 22 of 84
08427-023
ADAU1382
IOVDD 10F
+
AVDD1 10F
+
10F AVDD2
+
47F MICBIAS 0.1F
+
0.1F
0.1F
0.1F
0.1F
- +
MICBIAS
IOVDD
AVDD1
DVDDOUT
AVDD2
8 SPEAKER OUT
100pF SPN SPP 10k 10k STEREO SINGLE-ENDED HEADPHONE OUTPUT 10 220F
+
STEREO DIGITAL MIC INPUT 10F
LMIC/LMICN/MICD1 LMICP
AOUTL AOUTR
LEFT_OUT
ADAU1382
RMIC/RMICN/MICD2
10k 100pF 10k 10k CM 100nF + 10F GPIO STEREO HEADPHONE AMPLIFIER 10 220F
+
R52 10k
RMICP 10F
10k
RIGHT_OUT
10F BEEP EXTERNAL BEEP INPUT 49.9k
GPIO DAC_SDATA/GPIO0 ADC_SDATA/GPIO1 BCLK/GPIO2 LRCLK/GPIO3 ADDR1/CLATCH ADDR0/CDATA SDA/COUT SCL/CCLK
SERIAL DATA
MCKI EXTERNAL MCLK SOURCE 49.9k 2.2pF 49.9k MCKO PDN PDN
MCKO
THERM_PAD (EXPOSED PAD)
SYSTEM CONTROLLER
AGND1
AGND2
DGND
Figure 25. System Block Diagram with Stereo Digital Microphone Inputs
Rev. 0| Page 23 of 84
08427-024
ADAU1382 THEORY OF OPERATION
The ADAU1382 is a low power audio codec with an integrated, fixed-function audio processing sound engine. It is an all-in-one package that offers high quality audio, low power, small size, and many advanced features. The stereo ADC and stereo DAC each have a dynamic range (DNR) performance of at least 96.5 dB and a total harmonic distortion plus noise (THD + N) performance of at least -90 dB. The serial data port is compatible with I2S, leftjustified, right-justified, and TDM modes for interfacing to digital audio data. The operating voltage range is 1.8 V to 3.65 V, with an on-board regulator generating the internal digital supply voltage. The record path includes very flexible input configurations that can accept differential or single-ended analog microphone inputs as well as two stereo digital microphone inputs. There is also a beep input pin (BEEP) dedicated to analog beep signals that are common in digital still camera applications. A microphone bias pin that can power electrets-type microphones is also available. Each input signal has its own programmable gain amplifier (PGA) for input volume adjustment. An automatic level control (ALC) is built into the sound engine to maintain a constant input recording volume. The ADCs and DACs are high quality, 24-bit - converters that operate at selectable 64x or 128x oversampling rates. The base sampling rate of the converters is set by the input clock rate and can be further scaled with the converter control register settings. The converters can operate at sampling frequencies from 8 kHz to 96 kHz. The ADCs and DACs also include very fine-step digital volume controls. The playback path allows input signals and DAC outputs to be mixed into speaker and/or line outputs. The speaker driver is capable of driving 400 mW into an 8 load. The fixed-function sound engine contains a digital audio processing flow optimized for digital still camera stereo audio processing. However, the flexibility offered by the built-in sound engine allows this codec to be used for a wide variety of low power applications. Signal processing blocks included in the sound engine include the following: * * * * * * Wind noise filter Programmable multiband equalizer Configurable notch filter Automatic level control Digital volume control Multiplexers for signal routing
The ADAU1382 can generate its internal clocks from a wide range of input clocks by using the on-board fractional PLL. The PLL accepts inputs from 11 MHz to 20 MHz. The ADAU1382 is provided in a small, 32-lead, 5 mm x 5 mm lead frame chip scale package (LFCSP) with an exposed bottom pad.
Rev. 0 | Page 24 of 84
ADAU1382 STARTUP, INITIALIZATION, AND POWER
This section details the procedure for setting up the ADAU1382 properly. Figure 26 provides an overview of how to initialize the IC.
START
POWER-UP SEQUENCE
If AVDD1 and AVDD2 are from the same supply, they can power up simultaneously. If AVDD1 and AVDD2 are from separate supplies, then AVDD1 should be powered up first. IOVDD should be applied simultaneously with AVDD1, if possible. The ADAU1382 uses a power-on reset (POR) circuit to reset the registers upon power-up. The POR monitors the DVDDOUT pin and generates a reset signal whenever power is applied to the chip. During the reset, the ADAU1382 is set to the default values documented in the register map (see the Control Register Map section). The POR is also used to prevent clicks and pops on the speaker driver output. The power-up sequencing and timing involved is described in Figure 27 in this section, and in Figure 35 and Figure 36 of the Speaker Output section. A self-boot ROM initializes the memories after the POR has completed. When the self-boot sequence is complete, the control registers are accessible via the I2C/SPI control port and should then be configured as required for the application. Typically, with a 10 F capacitor on AVDD1, the power supply ramp-up, POR, and self-boot combined take approximately 14 ms.
ARE AVDD1 AND AVDD2 SUPPLIED SEPARATELY?
YES
CAN AVDD1 AND AVDD2 BE SIMULTANEOUSLY SUPPLIED?
NO
NO
YES SUPPLY POWER TO AVDD1
SUPPLY POWER TO AVDD1/AVDD2 PINS SIMULTANEOUSLY
SUPPLY POWER TO AVDD2
SUPPLY POWER TO IOVDD
WAIT 14ms FOR POWER-ON RESET AND INITIALIZATION ROM BOOT
CONFIGURE CLOCK GENERATION REGISTER 16384 (0x4000) AND REGISTER 16386 (0x4002)
WAIT FOR PLL LOCK (2.4ms TO 3.5ms)
ENABLE DIGITAL POWER TO FUNCTIONAL SUBSYSTEMS REGISTER 16512 (0x4080) AND REGISTER 16513 (0x4081)
SET UP SOUND ENGINE REGISTERS FOR CUSTOMIZED SIGNAL PATH (INCLUDING VOLUME, SAMPLE RATES, FILTER COEFFICIENTS)
08427-025
INITIALIZATION COMPLETE
Figure 26. Initialization Sequence
MAIN SUPPLY ENABLED MAIN SUPPLY DISABLED
AVDD1
1.5V
AVDD2 1.5V DVDDOUT 1.35V
0.95V POR ACTIVE
POWER-UP (INTERNAL SIGNAL)
POR ACTIVATES POR COMPLETE/SELF-BOOT INITIATES SELF-BOOT COMPLETE/MEMORY IS ACCESSIBLE
IOVDD
14ms
INTERNAL MCLK (NOT TO SCALE)
Figure 27. Power-Up and Power-Down Sequence Timing Diagram
Rev. 0| Page 25 of 84
08427-026
INPUT/OUTPUT PINS
HIGH-Z
ACTIVE
HIGH-Z
ADAU1382
CLOCK GENERATION AND MANAGEMENT
The ADAU1382 uses a flexible clocking scheme that enables the use of many different input clock rates. The PLL can be bypassed or used, resulting in two different approaches to clock management. For more information about clocking schemes, PLL configuration, and sampling rates, see the Clocking and Sampling Rates section.
ENABLING DIGITAL POWER TO FUNCTIONAL SUBSYSTEMS
To power subsystems in the device, they must be enabled using Register 16512 (0x4080), Digital Power-Down 0, and Register 16513 (0x4081), Digital Power-Down 1. The exact settings depend on the application. However, to proceed with the initialization sequence and access the RAMs and registers of the ADAU1382, Register 16512 (0x4080), Digital Power-Down 0, Bit 6, memory controller, and Bit 0, sound engine, must be enabled.
Case 1: PLL Is Bypassed
If the PLL is bypassed, the core clock is derived directly from the master clock (MCLK) input. The rate of this clock must be set properly in Register 16384 (0x4000), clock control, Bits[2:1], input master clock frequency. When the PLL is bypassed, supported external clock rates are 256 x fS, 512 x fS, 768 x fS, and 1024 x fS, where fS is the base sampling rate. The core clock of the chip is off until Register 16384 (0x4000), clock control, Bit 0, core clock enable, is set to 1.
SETTING UP THE SOUND ENGINE
After the PLL has locked, the ADAU1382 is in an operational state, and the control port can be used to configure the sound engine. For more information, see the Sound Engine section.
POWER REDUCTION MODES
Sections of the ADAU1382 chip can be turned on and off as needed to reduce power consumption. These include the ADCs, the DACs, and the PLL. In addition, some functions can be set in the registers to operate in power saving, normal, or enhanced performance operation. See the respective portions of the General-Purpose Input/Outputs section for more information. Each digital filter of the ADCs and DACs can be set to a 64x or 128x (default) oversampling ratio. Setting the oversampling ratio to 64x lowers power consumption with a minimal impact on performance. See the Typical Performance Characteristics section and the Typical Power Management Measurements section for specifications and graphs of the filters. Detailed information regarding individual power reduction control registers can be found in the Control Register Map section of this document.
Case 2: PLL Is Used
The core clock to the entire chip is off during the PLL lock acquisition period. The user can poll the lock bit to determine when the PLL has locked. After lock is acquired, the ADAU1382 can be started by setting Register 16384 (0x4000), clock control, Bit 0, core clock enable, to 1.This bit enables the core clock to all the internal functional blocks of the ADAU1382.
PLL Lock Acquisition
During the lock acquisition period, only Register 16384 (0x4000), clock control, and Register 16386 (0x4002), PLL control, are accessible through the control port. Reading from or writing to any other address is prohibited until Register 16384 (0x4000), clock control, Bit 0, core clock enable, and Register 16386 (0x4002), PLL control, Bit 1, PLL lock, are set to 1. Register 16386 (0x4002), PLL control, is a 48-bit register for which all bits must be written with a single continuous write to the control port. The PLL lock time is dependent on the MCLK rate. Typical lock times are provided in Table 11. Table 11. PLL Lock Time
PLL Mode Fractional Integer Fractional Fractional Fractional Fractional Fractional MCLK Frequency 12 MHz 12.288 MHz 13 MHz 14.4 MHz 19.2 MHz 19.68 MHz 19.8 MHz Lock Time (Typical) 3.0 ms 2.96 ms 2.4 ms 2.4 ms 2.98 ms 2.98 ms 2.98 ms
Power-Down Pin (PDN)
The power-down pin provides a simple hardware-based method for initiating low power mode without requiring access via the control port. When the PDN pin is raised to the same potential as AVDD1, the internal digital regulator is disabled and the device ceases to function, with power consumption dropping to a very low level. The common-mode voltage sinks, and all internal memories and registers lose their contents. When the PDN pin is lowered back to ground, the device reinitializes in its default state, as described in the Power-Up Sequence section.
POWER-DOWN SEQUENCE
When powering down the device, the IOVDD, AVDD1, and AVDD2 supplies should be disabled at the same time, if possible, but only after the analog and speaker outputs have been muted. If the supplies cannot be disabled simultaneously, the preferred sequence is IOVDD first, AVDD2 second, and AVDD1 last.
Rev. 0 | Page 26 of 84
ADAU1382 CLOCKING AND SAMPLING RATES
SOUND ENGINE FRAME RATE
fS / 0.5, 1, 1.5, 2, 3, 4, 6
PLL CONTROL CLOCK CONTROL INPUT MASTER CLOCK FREQUENCY 256 x fS, 512 x fS, 768 x fS, 1024 x fS CORE CLOCK CONVERTER SAMPLING RATE
SOUND ENGINE
f/X
MCKI INPUT DIVIDE 1, 2, 3, 4
f x (R + N/M) INTEGER, NUMERATOR, DENOMINATOR
ADCs
DACs
fS / 0.5, 1, 1.5, 2, 3, 4, 6
SERIAL PORT SAMPLING RATE
AUTOMATICALLY SET TO 1024 x fS WHEN PLL CLOCK SOURCE SELECTED
fS / 0.5, 1, 1.5, 2, 3, 4, 6
SERIAL DATA INPUT/OUTPUT PORTS
DAC_SDATA/GPIO0
ADC_SDATA/GPIO1
LRCLK/GPIO3
BCLK/GPIO2
Figure 28. Clock Routing Diagram
CORE CLOCK
The core clock divider generates a core clock either from the PLL or directly from MCLK and can be set in Register 16384 (0x4000), clock control. The core clock is always in 256 x fS mode. Direct MCLK frequencies must correspond to a value listed in Table 12, where fS is the base sampling frequency. PLL outputs are always in 1024 x fS mode, and the clock control register automatically sets the core clock divider to f/4 when using the PLL. Table 12. Core Clock Frequency Dividers
Input Clock Rate 256 x fS 512 x fS 768 x fS 1024 x fS Core Clock Divider f/1 f/2 f/3 f/4 Core Clock 256 x fS
For example, if the input to Bit 3 = 49.152 MHz (from PLL), then Bits[2:1] = 1024 x fS; therefore, fS = 49.152 MHz/1024 = 48 kHz Table 13. Clock Control Register (Register 16384, 0x4000)
Bits 3 [2:1] Bit Name Clock source select Input master clock frequency Settings 0: direct from MCKI pin (default) 1: PLL clock 00: 256 x fS (default) 01: 512 x fS 10: 768 x fS 11: 1024 x fS 0: core clock disabled (default) 1: core clock enabled
0
Core clock enable
SAMPLING RATES
The ADCs, DACs, and serial port share a common sampling rate that is set in Register 16407 (0x4017), Converter Control 0. Bits[2:0], converter sampling rate, set the sampling rate as a ratio of the base sampling frequency. The sound engine sampling rate is set in Register 16619 (0x40EB), sound engine frame rate, Bits[3:0], sound engine frame rate, and the serial port sampling rate is set in Register 16632 (0x40F8), serial port sampling rate, Bits[2:0], serial port control sampling rate. It is strongly recommended that the sampling rates for the converters, serial ports, and sound engine be set to the same value, unless appropriate compensation filtering is done within the sound engine.
Clocks for the converters, the serial ports, and the sound engine are derived from the core clock. The core clock can be derived directly from MCLK, or it can be generated by the PLL. Register 16384 (0x4000), clock control, Bit 3, clock source select, determines the clock source. Bits[2:1], input master clock frequency, should be set according to the expected input clock rate selected by Bit 3, clock source select. The clock source select value also determines the core clock rate and the base sampling frequency, fS.
Rev. 0| Page 27 of 84
08427-027
ADAU1382
Table 14 and Table 15 list the sampling rate divisions for common base sampling rates. Table 14. Base Sampling Rate Divisions for fS = 48 kHz
Base Sampling Frequency fS = 48 kHz Sampling Rate Scaling fS/1 fS/6 fS/4 fS/3 fS/2 fS/1.5 fS/0.5 Sampling Rate 48 kHz 8 kHz 12 kHz 16 kHz 24 kHz 32 kHz 96 kHz
Fractional Mode
Fractional mode is used when the MCLK is a fractional (R + (N/M)) multiple of the PLL output. For example, if MCLK = 12 MHz and fS = 48 kHz, then PLL Required Output = 1024 x 48 kHz = 49.152 MHz R + (N/M) = 49.152 MHz/12 MHz = 4 + (12/125) Common fractional PLL parameter settings for 44.1 kHz and 48 kHz sampling rates can be found in Table 16 and Table 17. Table 16. Fractional PLL Parameter Settings for fS = 44.1 kHz1
MCLK Input (MHz) 12 13 14.4 19.2 19.68 19.8
1
Table 15. Base Sampling Rate Divisions for fS = 44.1 kHz
Base Sampling Frequency fS = 44.1 kHz Sampling Rate Scaling fS/1 fS/6 fS/4 fS/3 fS/2 fS/1.5 fS/0.5 Sampling Rate 44.1 kHz 7.35 kHz 11.025 kHz 14.7 kHz 22.05 kHz 29.4 kHz 88.2 kHz
Input Divider (X) 1 1 2 2 2 2
Integer (R) 3 3 6 4 4 4
Denominator (M) 625 8125 125 125 1025 1375
Numerator (N) 477 3849 34 88 604 772
Desired core clock = 11.2896 MHz, PLL output = 45.1584 MHz.
Table 17. Fractional PLL Parameter Settings for fS = 48 kHz1
PLL
The PLL uses the MCLK as a reference to generate the core clock. PLL settings are set in Register 16386 (0x4002), PLL control. Depending on the MCLK frequency, the PLL must be set for either integer or fractional mode. The PLL can accept input frequencies in the range of 11 MHz to 20 MHz. All six bytes in the PLL control register must be written with a single continuous write to the control port.
MCKI /X x (R + N/M)
08427-028
MCLK Input (MHz) 12 13 14.4 19.2 19.68 19.8
1
Input Divider (X) 1 1 2 2 2 2
Integer (R) 4 3 6 5 4 4
Denominator (M) 125 1625 75 25 205 825
Numerator (N) 12 1269 62 3 204 796
TO PLL CLOCK DIVIDER
Desired core clock = 12.288 MHz, PLL output = 49.152 MHz.
Figure 29. PLL Block Diagram
Integer Mode
Integer mode is used when the MCLK is an integer (R) multiple of the PLL output (1024 x fS). For example, if MCLK = 12.288 MHz and fS = 48 kHz, then PLL Required Output = 1024 x 48 kHz = 49.152 MHz R = 49.152 MHz/12.288 MHz = 4 In integer mode, the values set for N and M are ignored.
The PLL outputs a clock in the range of 41 MHz to 54 MHz, which should be taken into account when calculating PLL values and MCLK frequencies.
Rev. 0 | Page 28 of 84
ADAU1382
The ADC and DAC sampling rate can be set in Register 16407 (0x4017), Converter Control 0, Bits[2:0], converter sampling rate. The sound engine sampling rate and serial port sampling rate are similarly set in Register 16619 (0x40EB), sound engine frame rate, Bits[3:0], sound engine frame rate, and Register 16632 (0x40F8), serial port sampling rate, Bits[2:0], serial port control sampling rate, respectively. Table 18 and Table 19 depict example sampling rate settings. The (1 x 256) case is the base sampling rate.
Core Clock 11.2896 MHz
Table 18. Sampling Rates for 256 x 48 kHz Core Clock
Core Clock 12.288 MHz Sampling Rate Divider (1 x 256) (6 x 256) (4 x 256) (3 x 256) (2 x 256) (1.5 x 256) (0.5 x 256) Sampling Rate 48 kHz 8 kHz 12 kHz 16 kHz 24 kHz 32 kHz 96 kHz
Table 19. Sampling Rates for 256 x 44.1 kHz Core Clock
Sampling Rate Divider (1 x 256) (6 x 256) (4 x 256) (3 x 256) (2 x 256) (1.5 x 256) (0.5 x 256) Sampling Rate 44.1 kHz 7.35 kHz 11.025 kHz 14.7 kHz 22.05 kHz 29.4 kHz 88.2 kHz
Rev. 0| Page 29 of 84
ADAU1382 RECORD SIGNAL PATH
BEEP PGA
Analog Beep Input
The BEEP pin is used for mono single-ended signals, such as a beep warning. This signal bypasses the ADCs and the sound engine and is mixed directly into any of the analog outputs.
LMIC/LMICN/ MICD1
LMICP CM RMIC/RMICN/ MICD2
PGA
LEFT ADC DECIMATORS
A BEEP pin input can also be amplified or muted by a PGA, up to 32 dB in Register 16392 (0x4008), digital microphone and analog beep control. The beep input must be enabled in Register 16400 (0x4010), microphone bias control and beep enable.
Microphone Bias
PGA CM RIGHT ADC
08427-029
RMICP
The MICBIAS pin provides a voltage reference for electret microphones. Register 16400 (0x4010), microphone bias control and beep enable, sets the operation mode of this pin.
Figure 30. Record Signal Path Diagram
Example Configurations
TO DECIMATORS LMIC/LMICN/ MICD1
INPUT SIGNAL PATH
The ADAU1382 can be configured for three types of microphone inputs: single-ended, differential, or digital. The LMIC/LMICN/ MICD1 and RMIC/RMICN/MICD2 pins encompass all of these configurations. LMICP and RMICP are used only during differential configurations (see Figure 30, the record signal path diagram). Each analog input has individual gain controls (boost or cut). These signals are routed to their respective right or left channel ADC.
LMICP CM
PGA
TO DECIMATORS RMIC/RMICN/ MICD2
RMICP CM
PGA
08427-030
Analog Microphone Inputs
For differential inputs, RMICN and RMICP denote the negative and positive input for the right channel, respectively. LMICN and LMICP denote the negative and positive input for the left channel, respectively. LMIC and RMIC inputs are single-ended line inputs. Together, they can be used as a stereo single-ended input.
Figure 31. Stereo Digital Microphone Input Configuration
LMIC/LMICN/ MICD1 TO LEFT ADC
LMICP CM RMIC/RMICN/ MICD2
PGA
Digital Microphone Inputs
When a digital PDM microphone connected to the MICD1 or MICD2 pin is used, Register 16392 (0x4008), digital microphone and analog beep control, must be set appropriately to enable the microphone input of choice. The MCKO output clock provides the clock for the microphone and must be set accordingly in Register 16384 (0x4000), clock control, depending on the streaming PDM rate of the microphone. The digital microphone signal bypasses the ADCs and is routed directly into the decimation filters. The digital microphone and ADCs share these decimation filters; therefore, both cannot be used simultaneously.
RMICP CM
PGA
TO RIGHT ADC
08427-031
Figure 32. Single-Ended Input Configuration
Rev. 0 | Page 30 of 84
ADAU1382
LMIC/LMICN/ MICD1 TO LEFT ADC
Digital ADC Volume Control
The ADC output (digital input) volume can be adjusted in Register 16410 (0x401A), left ADC attenuator, Bits[7:0], left ADC digital attenuator, for the left channel digital volume control and in Register 16411 (0x401B), right ADC attenuator, Bits[7:0], right ADC digital attenuator, for right channel digital volume control.
LMICP CM RMIC/RMICN/ MICD2
PGA
High-Pass Filter
PGA CM TO RIGHT ADC
08427-032
RMICP
A high-pass filter is used in the ADC path to remove dc offsets and can be selected in Register 16409 (0x4019), ADC control, Bit 5, high-pass filter select, where it can be enabled or disabled.
Figure 33. Differential Input Configuration
DIGITAL AUTOMATIC LEVEL CONTROL (ALC)
The ADAU1382 includes an automatic level control (ALC). The ALC adjusts the input gain continuously for a varying input signal as dictated by the user-defined ALC settings. This allows the input recording level to remain constant. Although this functionality relates mainly to the record signal path, it is implemented digitally in the sound engine.
ANALOG-TO-DIGITAL CONVERTERS
The ADAU1382 uses two 24-bit - analog-to-digital converters (ADCs) with selectable oversampling rates of either 64x or 128x. The full-scale input to the ADCs depends on AVDD1. At 3.3 V, the full-scale input level is 1.0 V rms. Inputs greater than the full-scale value result in clipping and distortion.
Rev. 0| Page 31 of 84
ADAU1382 PLAYBACK SIGNAL PATH
LEFT PLAYBACK MIXER LEFT DAC LEFT PLAYBACK BEEP GAIN MONO PLAYBACK BEEP GAIN BEEP FROM RECORD PGA RIGHT PLAYBACK BEEP GAIN MONO OUTPUT GAIN SPP LINE OUT AMPLIFIER AOUTL
beep signal. The mixer can be controlled in Register 16415 (0x401F), playback mono mixer control. The drivers are low noise, Class AB mono amplifiers designed to drive 8 , 400 mW speakers. The output is differential and does not require external capacitors. The gain settings for the speaker drivers can be set in Register 16423 (0x4027), playback speaker output control. In this register, the drivers can be set for any of the four gain settings: 0 dB, 2 dB, 4 dB, or 6 dB. Additionally, the speaker driver can be muted or powered down completely. For pop and click suppression, an internal precharge sequence with output gating/enabling occurs after the mono driver is enabled. The sequence lasts for 8 ms, and then the internal mute signal rising edge occurs (see Figure 35 for the power-up sequence timing diagram). The power-down sequence is essentially the reverse of the startup sequence, as depicted in Figure 36.
SPEAKER OUTPUT ENABLE MONO OUTPUT MUTE 4ms 4ms
MONO PLAYBACK MIXER
-1
SPN
MONO OUTPUT INVERTER RIGHT DAC RIGHT PLAYBACK LINE OUT MIXER AMPLIFIER AOUTR
08427-033
Figure 34. Playback Signal Path Diagram
OUTPUT SIGNAL PATHS
The outputs of the ADAU1382 include a left and right line output and speaker driver. The beep input signal can be mixed into any of these outputs, with separate gain control for each path.
DIGITAL-TO-ANALOG CONVERTERS
The ADAU1382 uses two 24-bit - digital-to-analog converters (DACs) with selectable oversampling rates of 64x or 128x. The full-scale output of the DACs depends on AVDD1. At 3.3 V, the full-scale output level is 1.0 V rms.
SPP
HIGH-Z
VCM
SPN
HIGH-Z
VCM
Digital DAC Volume Control
The DAC output (digital output) volume can be adjusted in Register 16427 (0x402B), left DAC attenuator, for the left channel digital volume control and in Register 16428 (0x402C), right DAC attenuator, for the right channel digital volume control.
IAVDD2 <1A 1.1mA 2.3mA 2.3mA + SIGNAL CURRENT
DAC
DAC VOLUME MUTED
DAC VOLUME INCREASES
08427-034
08427-035
De-Emphasis Filter
A de-emphasis filter is used in the DAC path to remove high frequency noise in an FM system. This filter can be enabled or disabled in Register 16426 (0x402A), DAC control.
BEEP
BEEP VOLUME MUTED
BEEP VOLUME INCREASES
Figure 35. Speaker Driver Power-Up Sequence
SPEAKER OUTPUT ENABLE MONO OUTPUT MUTE VCM 4ms 4ms
LINE OUTPUTS
The AOUTL and AOUTR pins are the left and right line outputs, respectively. Both outputs have a line output amplifier that can be set in the control registers. The left playback mixer is dedicated to the AOUTL output. This mixer mixes the left DAC and the beep signal. Similarly, the right playback mixer mixes the right DAC and the beep input and is dedicated to the AOUTR output.
SPP
HIGH-Z
SPN
VCM
HIGH-Z
IAVDD2
2.3mA + SIGNAL CURRENT
2.3mA
1.1mA
<1A
DAC
DAC VOLUME DECREASES
DAC VOLUME MUTED
SPEAKER OUTPUT
The SPP and SPN pins are the positive and negative speaker outputs, respectively. Each output has a speaker driver. The speaker outputs are derived from the mono playback mixer, which sums the right and left DAC outputs and mixes with the
Rev. 0 | Page 32 of 84
BEEP
BEEP VOLUME DECREASES
BEEP VOLUME MUTED
Figure 36. Speaker Driver Power-Down Sequence
ADAU1382 CONTROL PORTS
The ADAU1382 can operate in one of two control modes: I2C control or SPI control. The ADAU1382 has both a 4-wire SPI control port and a 2-wire I2C bus control port. Each can be used to set the registers. The part defaults to I2C mode but can be put into SPI control mode by pulling the CLATCH pin low three times. The control port is capable of full read/write operation for all addressable registers. Most sound engine processing parameters are controlled by writing new values to the sound engine parameter register using the control port. Other functions, such as mute, input/output mode control, and analog signal paths, can be programmed by writing to the appropriate registers. All addresses can be accessed in either a single-address mode or a burst mode. The first byte (Byte 0) of a control port write contains the 7-bit chip address plus the R/W bit. The next two bytes (Byte 1 and Byte 2) together form the subaddress of the register location within the ADAU1382. All subsequent bytes (starting with Byte 3) contain the data, such as control port data, register data, or sound engine parameter data. The number of bytes per word depends on the type of data that is being written. The exact formats for specific types of writes and reads are shown in Figure 39 to Figure 42. The ADAU1382 has several mechanisms for updating sound engine parameters in real time without causing pops or clicks. The control port pins are multifunctional, depending on the mode in which the part is operating. Table 20 details these multiple functions. Table 20. Control Port Pin Functions
Pin SCL/CCLK SDA/COUT ADDR1/CLATCH ADDR0/CDATA I2C Mode SCL--input SDA--open-collector output I2C Address Bit 1--input I2C Address Bit 0--input SPI Mode CCLK--input COUT--output CLATCH--input CDATA--input
Burst mode addressing, where the subaddresses are automatically incremented at word boundaries, can be used for writing large amounts of data to contiguous memory locations. This increment happens automatically after a single-word write unless a stop condition is encountered. The registers in the ADAU1382 range in width from one to six bytes; therefore, the auto-increment feature knows the mapping between subaddresses and the word length of the destination register. A data transfer is always terminated by a stop condition. Both SDA and SCL should have 2.0 k pull-up resistors on the lines connected to them. The voltage on these signal lines should not be more than AVDD1. Table 21. I2C Address Byte Format
Bit 0 0 Bit 1 1 Bit 2 1 Bit 3 1 Bit 4 0 Bit 5 ADDR1 Bit 6 ADDR0 Bit 7 R/W
Table 22. I2C Addresses
ADDR1 0 0 0 0 1 1 1 1 ADDR0 0 0 1 1 0 0 1 1 R/W 0 1 0 1 0 1 0 1 Slave Address 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77
Addressing
Initially, each device on the I2C bus is in an idle state and monitoring the SDA and SCL lines for a start condition and the proper address. The I2C master initiates a data transfer by establishing a start condition, defined by a high-to-low transition on SDA while SCL remains high. This indicates that an address or an address and data stream follow. All devices on the bus respond to the start condition and shift the next eight bits (the 7-bit address plus the R/W bit), MSB first. The device that recognizes the transmitted address responds by pulling the data line low during the ninth clock pulse. This ninth bit is known as an acknowledge bit. All other devices withdraw from the bus at this point and return to the idle condition. The R/W bit determines the direction of the data. A Logic 0 on the LSB of the first byte means the master writes information to the peripheral, whereas a Logic 1 means the master reads information from the peripheral after writing the subaddress and repeating the start address. A data transfer takes place until a stop condition is encountered. A stop condition occurs when SDA transitions from low to high while SCL is held high. Figure 37 shows the timing of an I2C write, and Figure 38 shows an I2C read.
I2C PORT
The ADAU1382 supports a 2-wire serial (I2C-compatible) microprocessor bus driving multiple peripherals. Two pins, serial data (SDA) and serial clock (SCL), carry information between the ADAU1382 and the system I2C master controller. In I2C mode, the ADAU1382 is always a slave on the bus, meaning it cannot initiate a data transfer. Each slave device is recognized by a unique address. The address byte format is shown in Table 21. The address resides in the first seven bits of the I2C write. The LSB of this byte sets either a read or write operation. Logic 1 corresponds to a read operation, and Logic 0 corresponds to a write operation. The full byte addresses, including the pin settings and R/W bit, are shown in Table 22.
Rev. 0| Page 33 of 84
ADAU1382
Stop and start conditions can be detected at any stage during the data transfer. If these conditions are asserted out of sequence with normal read and write operations, the ADAU1382 immediately jumps to the idle condition. During a given SCL high period, the user should issue only one start condition, one stop condition, or a single stop condition followed by a single start condition. If an invalid subaddress is issued by the user, the ADAU1382 does not issue an acknowledge and returns to the idle condition. If the user exceeds the highest subaddress while in auto-increment mode, one of two actions is taken. In read mode, the ADAU1382 outputs the highest subaddress register contents until the master device issues a no acknowledge, indicating the end of a read. A no-acknowledge condition is where the SDA line is not pulled low on the ninth clock pulse on SCL. If the highest subaddress location is reached while in write mode, the data for the invalid byte is not loaded into any subaddress register, a no acknowledge is issued by the ADAU1382, and the part returns to the idle condition.
SCL
SDA START BY MASTER
0
1
1
1
0
ADDR1 ADDR0 R/W ACKNOWLEDGE BY ADAU1382 ACKNOWLEDGE BY ADAU1382 FRAME 2 SUBADDRESS BYTE 1
FRAME 1 CHIP ADDRESS BYTE
SCL (CONTINUED)
SDA (CONTINUED)
08427-036 08427-037
ACKNOWLEDGE BY ADAU1382 FRAME 3 SUBADDRESS BYTE 2 FRAME 4 DATA BYTE 1
ACKNOWLEDGE STOP BY BY ADAU1382 MASTER
Figure 37. I2C Write to ADAU1382 Clocking
SCL
SDA START BY MASTER
0
1
1
1
0
ADDR1
ADDR0
R/W ACKNOWLEDGE BY ADAU1382 FRAME 2 SUBADDRESS BYTE 1
ACKNOWLEDGE BY ADAU1382 FRAME 1 CHIP ADDRESS BYTE
SCL (CONTINUED)
SDA (CONTINUED) ACKNOWLEDGE BY ADAU1382 FRAME 3 SUBADDRESS BYTE 2
0
1
1
1
0
ADDR1
ADDR0
R/W
REPEATED START BY MASTER FRAME 4 CHIP ADDRESS BYTE
ACKNOWLEDGE BY ADAU1382
SCL (CONTINUED)
SDA (CONTINUED) ACKNOWLEDGE BY ADAU1382 FRAME 5 READ DATA BYTE 1 FRAME 6 READ DATA BYTE 2 ACKNOWLEDGE BY MASTER STOP BY MASTER
Figure 38. I2C Read from ADAU1382 Clocking
Rev. 0 | Page 34 of 84
ADAU1382
I2C Read and Write Operations
Figure 39 shows the timing of a single-word write operation. Every ninth clock pulse, the ADAU1382 issues an acknowledge by pulling SDA low. Figure 40 shows the timing of a burst mode write sequence. This figure shows an example where the target destination registers are two bytes. The ADAU1382 knows to increment its subaddress register every two bytes because the requested subaddress corresponds to a register or memory area with a 2-byte word length. The timing of a single-word read operation is shown in Figure 41. Note that the first R/W bit is 0, indicating a write operation. This is because the subaddress still needs to be written to set up the internal address. After the ADAU1382 acknowledges the receipt of the subaddress, the master must issue a repeated start command followed by the chip address byte with the R/W bit set to 1 (read). This causes the ADAU1382 SDA to reverse and begin driving data back to the master. The master then responds every ninth pulse with an acknowledge pulse to the ADAU1382. Figure 42 shows the timing of a burst mode read sequence. This figure shows an example where the target read registers are two bytes. The ADAU1382 increments its subaddress every two bytes because the requested subaddress corresponds to a register or memory area with word lengths of two bytes. Other address ranges may have a variety of word lengths ranging from one to five bytes. The ADAU1382 always decodes the subaddress and sets the auto-increment circuit so that the address increments after the appropriate number of bytes.
S
CHIP ADDRESS, R/W = 0
AS
SUBADDRESS, HIGH BYTE
AS
SUBADDRESS, LOW BYTE
AS
DATA BYTE 1
AS
DATA BYTE 2
AS
...
DATA BYTE N
AS
P
08427-038
S = START BIT, P = STOP BIT, AS = ACKNOWLEDGE BY SLAVE. SHOWS A ONE-WORD WRITE, WHERE EACH WORD HAS N BYTES.
Figure 39. Single-Word I2C Write Sequence
S
CHIP ADDRESS, R/W = 0
AS
SUBADDRESS, HIGH BYTE
AS
SUBADDRESS, LOW BYTE
AS
AS
AS
AS
AS
...
AS
AS
P
DATA-WORD 1, DATA-WORD 1, DATA-WORD 2, DATA-WORD 2, BYTE 1 BYTE 2 BYTE 1 BYTE 2
DATA-WORD N, DATA-WORD N, BYTE 1 BYTE 2
08427-039 08427-041 08427-040
S = START BIT, P = STOP BIT, AS = ACKNOWLEDGE BY SLAVE. SHOWS AN N-WORD WRITE, WHERE EACH WORD HAS TWO BYTES. (OTHER WORD LENGTHS ARE POSSIBLE, RANGING FROM ONE TO FIVE BYTES.)
Figure 40. Burst Mode I2C Write Sequence
S
CHIP ADDRESS, R/W = 0
AS
SUBADDRESS, HIGH BYTE
AS
SUBADDRESS, LOW BYTE
AS
S
CHIP ADDRESS, R/W = 1
AS
DATA BYTE 1
AM
DATA BYTE 2
AM
...
DATA BYTE N
AM
P
S = START BIT, P = STOP BIT, AM = ACKNOWLEDGE BY MASTER, AS = ACKNOWLEDGE BY SLAVE. SHOWS A ONE-WORD READ, WHERE EACH WORD HAS N BYTES.
Figure 41. Single-Word I2C Read Sequence
S
CHIP ADDRESS, R/W = 0
AS
SUBADDRESS, HIGH BYTE
AS
SUBADDRESS, LOW BYTE
AS
S
CHIP ADDRESS, R/W = 1
AS
AM
AM
...
AM
AM
P
DATA-WORD 1, BYTE 1
DATA-WORD 1, BYTE 2
DATA-WORD N, DATA-WORD N, BYTE 1 BYTE 2
S = START BIT, P = STOP BIT, AM = ACKNOWLEDGE BY MASTER, AS = ACKNOWLEDGE BY SLAVE. SHOWS AN N-WORD READ, WHERE EACH WORD HAS TWO BYTES. (OTHER WORD LENGTHS ARE POSSIBLE, RANGING FROM ONE TO FIVE BYTES.)
Figure 42. Burst Mode I2C Read Sequence
Rev. 0| Page 35 of 84
ADAU1382
SPI PORT
By default, the ADAU1382 is in I2C mode, but can be put into SPI control mode by pulling CLATCH low three times. The SPI port uses a 4-wire interface, consisting of CLATCH, CCLK, CDATA, and COUT signals, and is always a slave port. The CLATCH signal goes low at the beginning of a transaction and high at the end of a transaction. The CCLK signal latches CDATA on a low-to-high transition. COUT data is shifted out of the ADAU1382 on the falling edge of CCLK and should be clocked into a receiving device, such as a microcontroller, on the CCLK rising edge. The CDATA signal carries the serial input data, and the COUT signal is the serial output data. The COUT signal remains three-stated until a read operation is requested. This allows other SPI-compatible peripherals to share the same readback line. All SPI transactions have the same basic format shown in Table 24. A timing diagram is shown in Figure 4. All data should be written MSB first. The ADAU1382 can be taken out of SPI mode only by a full reset.
Data Bytes
The number of data bytes varies according to the register being accessed. During a burst mode write, an initial subaddress is written followed by a continuous sequence of data for consecutive register locations. A sample timing diagram for a single-write SPI operation to the parameter memory is shown in Figure 43. A sample timing diagram of a single-read SPI operation is shown in Figure 44. The COUT pin goes from three-state to being driven at the beginning of Byte 3. In this example, Byte 0 to Byte 2 contain the addresses and R/W bit, and subsequent bytes carry the data.
SPI Read/Write Clock Frequency (CCLK)
The SPI port of the ADAU1382 has asymmetrical read and write clock frequencies. It is possible to write data into the device at higher data rates than reading data out of the device. More detailed information is available in the Digital Timing Specifications section.
Chip Address R/W
The first byte of an SPI transaction includes the 7-bit chip address and an R/W bit. The chip address is always 0x38. The LSB of this first byte determines whether the SPI transaction is a read (Logic 1) or a write (Logic 0). Table 23. SPI Address Byte Format
Bit 0 0 Bit 1 1 Bit 2 1 Bit 3 1 Bit 4 0 Bit 5 0 Bit 6 0 Bit 7 R/W
MEMORY AND REGISTER ACCESS
Several conditions must be true to have full access to all memory and registers via the control port: * * * The ADAU1382 must have finished its initialization, including power-on reset, PLL lock, and self-boot. The core clock must be enabled (Register 16384 (0x4000), clock control, Bit 0, core clock enable, set to 1). The memory controller must be powered (Register 16512 (0x4080), Digital Power-Down 0, Bit 6, memory controller, set to 1). The sound engine must be powered (Register 16512 (0x4080), Digital Power-Down 0, Bit 0, sound engine, set to 1).
Subaddress
The 12-bit subaddress word is decoded into a location in one of the registers. This subaddress is the location of the appropriate register. The MSBs of the subaddress are zero-padded to bring the word to a full 2-byte length. Table 24. Generic Control Word Format
Byte 0 CHIP_ADR[6:0], R/W
1
*
Byte 1 SUBADR[15:8]
Byte 2 SUBADR[7:0]
Byte 3 Data
Byte 4 1 Data
Continues to end of data.
Rev. 0 | Page 36 of 84
ADAU1382
CLATCH
CCLK
CDATA
BYTE 0
BYTE 1
BYTE 2
BYTE 3
Figure 43. SPI Write to ADAU1382 Clocking (Single-Write Mode)
CLATCH
CCLK
CDATA
BYTE 0
BYTE 1
BYTE 3
COUT
HIGH-Z
DATA
DATA
HIGH-Z
Figure 44. SPI Read from ADAU1382 Clocking (Single-Read Mode)
Rev. 0| Page 37 of 84
08427-043
08427-042
ADAU1382 SERIAL DATA INPUT/OUTPUT PORTS
The flexible serial data input and output ports of the ADAU1382 can be set to accept or transmit data in 2-channel format or in a 4-channel or 8-channel TDM stream to interface to external ADCs or DACs. Data is processed by default in twos complement, MSB first format, unless otherwise configured in the control registers. By default, the left channel data field precedes the right channel data field in 2-channel streams. In TDM 4 mode, Slot 0 and Slot 1 are in the first half of the audio frame, and Slot 2 and Slot 3 are in the second half of the audio frame. In TDM 8 mode, Slot 0 to Slot 3 are in the first half of the audio frame, and Slot 4 to Slot 7 are in the second half of the frame. The serial modes and the position of the data in the frame are set in Register 16405 (0x4015), Serial Port Control 0; Register 16406 (0x4016), Serial Port Control 1; Register 16407 (0x4017), Converter Control 0; and Register 16408 (0x4018), Converter Control 1. The serial data clocks must be synchronous with the ADAU1382 master clock input. The LRCLK and BCLK pins are used to clock both the serial input and output ports. The ADAU1382 can be set as the master or the slave in a system. Because there is only one set of serial data clocks, the input and output ports must always be both master or both slave. Register 16405 (0x4015), Serial Port Control 0, and Register 16406 (0x4016), Serial Port Control 1, allow control of clock polarity and data input modes. The valid data formats are I2S, left-justified, right-justified (24-/20-/18-/16-bit), and TDM. In all modes except for the right-justified modes, the serial port inputs an arbitrary number of audio data bits, up to a limit of 24. Extra bits do not cause an error, but they are truncated internally. The serial port can operate with an arbitrary number of BCLK transitions in each LRCLK frame.
TDM MODES
The LRCLK in TDM mode can be input to the ADAU1382 either as a 50% duty cycle clock or as a bit-wide pulse. When the LRCLK is set as a pulse, a 47 pF capacitor should be connected between the LRCLK pin and ground, as shown in Figure 45. This is necessary in both master and slave modes to properly align the LRCLK signal to the serial data stream.
ADAU1382
LRCLK 47pF
08427-044
BCLK
Figure 45. TDM Pulse Mode LRCLK Capacitor Alignment
The ADAU1382 TDM implementation is a TDM audio stream. Unlike a true TDM bus, its output does not become high impedance during periods when it is not transmitting data. In TDM 8 mode, the ADAU1382 can be a master for fS up to 48 kHz. Table 25 lists the modes in which the serial output port can function. Table 25. Serial Output Port Master/Slave Mode Capabilities
fS 48 kHz 96 kHz 2-Channel Modes (I2S, LeftJustified, Right-Justified) Master and slave Master and slave 8-Channel TDM Master and slave Slave
Table 26 describes the proper configurations for standard audio data formats. Right-justified modes must be configured manually using Register 16406 (0x4016), Serial Port Control 1, Bits[7:5], number of bit clock cycles per frame, and Bits[1:0], data delay from LRCLK edge.
Table 26. Data Format Configurations
Format I2S (see Figure 46) Left-Justified (see Figure 47) Right-Justified (see Figure 48) LRCLK Polarity Frame begins on falling edge Frame begins on rising edge Frame begins on rising edge LRCLK Mode 50% duty cycle 50% duty cycle 50% duty cycle BCLK Polarity Data changes on falling edge Data changes on falling edge Data changes on falling edge BCLK Cycles/ Audio Frame 64 64 64 Data Delay from LRCLK Edge Delayed from LRCLK edge by 1 BCLK Aligned with LRCLK edge Delayed from LRCLK edge by 8, 12, or 16 BCLKs to align LSB with right edge of frame. Delayed from start of word clock by 1 BCLK Delayed from start of word clock by 1 BCLK
TDM with Clock (see Figure 49) TDM with Pulse (see Figure 50)
Frame begins on falling edge Frame begins on rising edge
50% duty cycle Pulse
Data changes on falling edge Data changes on falling edge
64 to 256 64 to 256
Rev. 0 | Page 38 of 84
ADAU1382
LRCLK BCLK SDATA MSB LSB 1/fS MSB LSB
08427-045
LEFT CHANNEL
RIGHT CHANNEL
Figure 46. I S Mode--16 Bits to 24 Bits per Channel
2
LRCLK BCLK SDATA MSB
LEFT CHANNEL LSB 1/fS MSB
RIGHT CHANNEL
Figure 47. Left-Justified Mode--16 Bits to 24 Bits per Channel
LRCLK BCLK SDATA MSB
LEFT CHANNEL LSB 1/fS
RIGHT CHANNEL
Figure 48. Right-Justified Mode--16 Bits to 24 Bits per Channel
LRCLK 256 BCLKs BCLK 32 BCLKs DATA SLOT 1 SLOT 2 SLOT 3 SLOT 4 SLOT 5 SLOT 6 SLOT 7 SLOT 8
LRCLK
08427-048
BCLK MSB MSB - 1 MSB - 2 DATA
Figure 49. TDM Mode
LRCLK
BCLK
MSB TDM SDATA
CH 0
MSB TDM
8TH CH
SLOT 0 32 BCLKs
SLOT 1
SLOT 2
SLOT 3
SLOT 4
SLOT 5
SLOT 6
SLOT 7
08427-049
Figure 50. TDM Mode with Pulse Word Clock
Rev. 0| Page 39 of 84
08427-047
MSB
LSB
08427-046
LSB
ADAU1382 GENERAL-PURPOSE INPUT/OUTPUTS
The serial data input/output pins are shared with the generalpurpose input/output function. Each of these four pins can be set to only one function. The function of these pins is set in Register 16628 (0x40F4), serial data/GPIO pin configuration. The GPIO pins can be used as either inputs or outputs. These pins are readable and can be set either through the control interface or directly by the sound engine. When set as inputs, these pins can be used with push-button switches or rotary encoders to control sound engine program settings. Digital outputs can be used to drive LEDs or external logic to indicate the status of internal signals and control other devices. Examples of this use include indicating signal overload, signal present, and button press confirmation. When set as an output, each pin can typically drive 2 mA. This is enough current to directly drive some high efficiency LEDs. Standard LEDs require about 20 mA of current and can be driven from a GPIO output with an external transistor or buffer. Because of issues that may arise from simultaneously driving or sinking a large current on many pins, care should be taken in the application design to avoid connecting high efficiency LEDs directly to many or all of the GPIO pins. If many LEDs are required, use an external driver. When the GPIO pins are set as open-collector outputs, they should be pulled up to a maximum voltage of what is set on IOVDD. The configuration of the GPIO functions is set up in Register 16582 to Register 16586 (0x40C6 to 0x40CA), GPIO pin control.
GPIOs Set from Control Port
The GPIO pins can also be set to be directly controlled from the I2C/SPI control port. When the pins are set into this mode, five memory locations are enabled for the GPIO pin settings (see Table 68). The physical settings on the GPIO pins mirror the settings of the LSB of these 4-byte-wide memory locations.
Rev. 0 | Page 40 of 84
ADAU1382 SOUND ENGINE
SIGNAL PROCESSING
The ADAU1382 is designed to provide a fixed-function signal processing flow specifically catered to digital still cameras and other low power applications. communications interface board (see the AD1940 product page for ordering information). SigmaStudio is also capable of one-click generation of C-compatible data and header files, which can then be integrated directly into a system's host processor.
PROCESSING FLOW
The processing flow is outlined in Figure 51.
PARAMETER MEMORY
The sound engine makes use of a parameter memory to store signal processing parameter values, such as filter coefficients. This memory space is mapped to addresses starting at 0x0000 and is accessible via the control port. The parameter memory allows the user to modify signal processing parameters in real time during operation of the sound engine.
PROGRAMMING
Although the sound engine's audio processing flow is fixedfunction, processing parameters and signal paths can be modified by the user. Real-time tuning and parameter generation is made possible by SigmaStudioTM, a graphical user interface that can communicate with the ADAU1382 control port via the EVAL-ADUSB2EBZ
LINE INPUT
ADC MONO DAC
ADC DIGITAL MIC BEEP
MIX
LINE OUTPUT STEREO
ADAU1382 SOUND ENGINE
STEREO RECORD WIND NOISE FILTER ROUTING FIVE-BAND DYNAMIC LOGIC ROUTING DUAL-BAND EQUALIZER PROCESSOR SIX BAND LOGIC DYNAMIC ROUTING DUAL-BAND EQUALIZER PROCESSOR SIX BAND LOGIC DYNAMIC EQUALIZER PROCESSOR PLAYBACK ROUTING LOGIC MUTE MUTE PLAYBACK STEREO FLAG
08427-050
STEREO
DIGITAL OUTPUT
DIGITAL STEREO INPUT
Figure 51. Sound Engine Signal Processing Flow
Rev. 0| Page 41 of 84
ADAU1382 APPLICATIONS INFORMATION
POWER SUPPLY BYPASS CAPACITORS
Each analog and digital power supply pin should be bypassed to its nearest appropriate ground pin with a single 100 nF capacitor. The connections to each side of the capacitor should be as short as possible, and the trace should stay on a single layer with no vias. For maximum effectiveness, locate the capacitor equidistant from the power and ground pins or, when equidistant placement is not possible, slightly closer to the power pin. Thermal connections to the ground planes should be made on the far side of the capacitor. Each supply signal on the board should also be bypassed with a single bulk capacitor (10 F to 47 F).
VDD GND
GROUNDING
A single ground plane should be used in the application layout. Components in an analog signal path should be placed away from digital signals.
SPEAKER DRIVER SUPPLY TRACE (AVDD2)
The trace supplying power to the AVDD2 pin has higher current requirements than the AVDD1 pin (up to 300 mA). An appropriately thick trace is recommended.
EXPOSED PAD PCB DESIGN
The ADAU1382 LFCSP package has an exposed pad on the underside. This pad is used to couple the package to the PCB for heat dissipation when using the outputs to drive earpiece or headphone loads. When designing a board for the ADAU1382, special consideration should be given to the following: * A copper layer equal in size to the exposed pad should be on all layers of the board, from top to bottom, and should connect somewhere to a dedicated copper board layer (see Figure 54). Vias should be placed to connect all layers of copper, allowing for efficient heat and energy conductivity. For an example, see Figure 55, which has nine vias arranged in a 3 inch x 3 inch grid in the pad area.
CAPACITOR
TO VDD
08427-051
*
TO GND
Figure 52. Recommended Power Supply Bypass Capacitor Layout
GSM NOISE FILTER
In mobile applications, excessive 217 Hz GSM noise on the analog supply pins can degrade the quality of the audio signal. To avoid this problem, it is recommended that an LC filter be used in series with the bypass capacitors for the AVDD pins. This filter should consist of a 1.2 nH inductor and a 9.1 pF capacitor in series between AVDDx and ground, as shown in Figure 53.
10F + 0.1F 0.1F 1.2nH 9.1pF
08427-052
VIAS
COPPER SQUARES
Figure 54. Exposed Pad Layout Example, Side View
AVDD1
AVDD2
Figure 53. GSM Filter on the Analog Supply Pins
Figure 55. Exposed Pad Layout Example, Top View
Rev. 0 | Page 42 of 84
08427-054
08427-053
TOP GROUND POWER BOTTOM
ADAU1382 CONTROL REGISTER MAP
All registers except the PLL control register are 1-byte write and read registers. Table 27.
Hex 0x4000 0x4001 0x4002 0x4008 0x4009 0x400E 0x400F 0x4010 0x4015 0x4016 0x4017 0x4018 0x4019 0x401A 0x401B 0x401C 0x401E 0x401F 0x4020 0x4025 0x4026 0x4027 0x4028 0x4029 0x402A 0x402B 0x402C 0x402D 0x402E 0x402F 0x4030 0x4031 0x4080 0x4081 0x40C6 to 0x40CA 0x03E8 to 0x03EC 0x40E9 to 0x40EA 0x40EB 0x40F2 0x40F3 0x40F4 0x40F6 0x40F8 Address Decimal 16384 16385 16386 16392 16393 16398 16399 16400 16405 16406 16407 16408 16409 16410 16411 16412 16414 16415 16416 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16512 16513 16582 to 16586 1000 to 1004 16617 to 16618 16619 16626 16627 16628 16630 16632 Name Clock control Regulator control PLL control (48-bit register) Digital microphone and analog beep control Record power management Record gain left PGA Record gain right PGA Microphone bias control and beep enable Serial Port Control 0 Serial Port Control 1 Converter Control 0 Converter Control 1 ADC control Left ADC attenuator Right ADC attenuator Playback mixer left control Playback mixer right control Playback mono mixer control Playback clamp amplifier control Left line output mute Right line output mute Playback speaker output control Beep zero-crossing detector control Playback power management DAC control Left DAC attenuator Right DAC attenuator Serial Port Pad Control 0 Serial Port Pad Control 1 Communication Port Pad Control 0 Communication Port Pad Control 1 MCKO control Digital Power-Down 0 Digital Power-Down 1 GPIO pin control GPIO pin value registers Nonmodulo registers Sound engine frame rate Serial input route control Serial output route control Serial data/GPIO pin configuration Sound engine run Serial port sampling rate
Rev. 0| Page 43 of 84
ADAU1382
CLOCK MANAGEMENT, INTERNAL REGULATOR, AND PLL CONTROL
Register 16384 (0x4000), Clock Control
The clock control register sets the clocking scheme for the ADAU1382. The system clock can be generated from either the PLL or directly from the MCKI (master clock input) pin. Additionally, the MCKO (master clock output) pin can be configured. the PLL is always 1024 x fS, and Bits[2:1] should be set to 11. PLL parameters can be set in the PLL control register. Inputs directly from MCKI require an exact clock rate as described in the Bits[2:1], Input Master Clock Frequency section.
Bits[2:1], Input Master Clock Frequency
The maximum clock speed allowed is 1024 x 48 kHz. These bits set the expected input master clock frequency for proper clock divider values in order to output a constant system clock of 256 x fS. When using the PLL, these bits must always be set to 1024 x fS. When bypassing the PLL, the external clock frequency on the MCKI pin must be 256 x fS, 512 x fS, 768 x fS, or 1024 x fS. Table 29 and Table 30 show the relationship between the system clock and the internal master clock for base sampling frequencies of 44.1 kHz and 48 kHz.
Bits[6:5], MCKO Frequency
These bits set the frequency to be output on MCKO as a multiple of the base sampling frequency (32x, 64x, 128x, or 256x). The MCKO pin can be used to provide digital microphones with a clock.
Bit 4, MCKO Enable
This bit enables or disables the MCKO pin.
Bit 0, Core Clock Enable Bit 3, Clock Source Select
The clock source select bit either routes the MCLK input through the PLL or bypasses the PLL. When using the PLL, the output of Table 28. Clock Control Register
Bits 7 [6:5] Description Reserved MCKO frequency 00: 32 x fS 01: 64 x fS 10: 128 x fS 11: 256 x fS MCKO enable 0: disabled 1: enabled Clock source select 0: direct from MCKI pin 1: PLL clock Input master clock frequency 00: 256 x fS 01: 512 x fS 10: 768 x fS 11: 1024 x fS Core clock enable 0: core clock disabled 1: core clock enabled Default 00
This bit enables the internal master clock to start the IC.
4
0
3
0
[2:1]
00
0
0
Table 29. Core Clock Output for fS = 44.1 kHz
MCLK Input Setting 256 x fS 512 x fS 768 x fS 1024 x fS MCLK Input Value 11.2896 MHz 22.5792 MHz 33.8688 MHz 45.1584 MHz MCLK Input Divider 1 2 3 4 Core Clock 11.2896 MHz 11.2896 MHz 11.2896 MHz 11.2896 MHz
Table 30. Core Clock Output for fS = 48 kHz
MCLK Input Setting 256 x fS 512 x fS 768 x fS 1024 x fS MCLK Input Value 12.288 MHz 24.576 MHz 36.864 MHz 49.152 MHz MCLK Input Divider 1 2 3 4
Rev. 0 | Page 44 of 84
Core Clock 12.288 MHz 12.288 MHz 12.288 MHz 12.288 MHz
ADAU1382
Register 16385 (0x4001), Regulator Control Bits[2:1], Regulator Output Level
These bits set the regulated voltage output for the digital core, DVDDOUT. After the initialization sequence has completed, the regulator output is set to 1.4 V. The recommended regulator output level when the device begins to process audio is 1.5 V. Therefore, this register should be set to 1.5 V when the sound engine is being configured.
Bits[10:9], Input Divider
The input divider (X) divides the input clock to offer a wider range of input clocks.
Bit 8, PLL Type
This selects the type of PLL operation, fractional or integer-N.
Fractional Type PLL
Fractional type MCLK inputs are scaled to the corresponding desired core clock input using the parameters outlined in Table 33 and Table 34 as examples of typical base sampling frequencies (44.1 kHz and 48 kHz). A numerical-controlled oscillator is used to divide the PLL_CLK by a mixed number given by the addition of the integer part (R) and fractional part (N/M). For example, if the MCLK is 12 MHz, the required clock is 12.288 MHz, and fS is 48 kHz, then the PLL clock is 49.152 MHz because PLL clock is always 1024 x fS; therefore, PLL Clock/MCLK = 4.096 = 4 + (12/125) = R + (N/M) In this case, the input divider is X = 1. This allows the MCLK input to emulate the desired required clock and output a 49.152 MHz PLL clock. Figure 29 shows how the PLL uses the parameters to emulate the required 12.288 MHz clock.
Register 16386 (0x4002), PLL Control
This is a 48-bit register that must be written to in a single burst write. PLL operating parameters are used to scale the MCLK input to the desired clock core in order to obtain an appropriate PLL clock (PLL output frequency). The PLL can be configured for either fractional or integer-N type MCLK inputs.
Bits[47:40], Denominator MSB
Byte 1, M[15:8] of the denominator (M) for fractional part of feedback divider. This is concatenated with Denominator LSB, M[7:0].
Bits[39:32], Denominator LSB
Byte 0, M[7:0] of the denominator (M) for fractional part of feedback divider. This is concatenated with Denominator MSB, M[15:8].
Bits[31:24], Numerator MSB
Byte 1, N[15:8] of the numerator (N) for fractional part of the feedback divider. This is concatenated with Numerator LSB, N[7:0].
Integer-N Type PLL
Integer-N type MCLK inputs are any integer multiple of the desired core clock. The fractional part (N/M) is 0; however, the PLL type bit must be set for integer-N.
Bits[23:16], Numerator LSB
Byte 0, N[7:0] of the numerator (N) for fractional part of the feedback divider. This is concatenated with Numerator MSB, N[15:8].
Bit 1, PLL Lock
The PLL lock bit is a read-only bit. Reading a 1 from this bit indicates that the PLL has locked to the input master clock.
Bits[14:11], Integer
Integer (R) parameter used in both integer-N and fractional PLL operation. This value must be between 2 and 8.
Bit 0, PLL Enable
This bit enables the PLL.
Table 31. Regulator Control Register
Bits [7:3] [2:1] Description Reserved Regulator output level 00: 1.5 V 01: 1.4 V 10: 1.6 V 11: 1.7 V Reserved Default 01
0
Rev. 0| Page 45 of 84
ADAU1382
Table 32. PLL Control Register
Bits [47:40] Description Denominator MSB 00000000 and 00000000: M[15:8] and M[7:0] = 0 ... 00000000 and 11111101: M[15:8] and M[7:0] = 125 ... 11111111 and 11111111: M[15:8] and M[7:0] = 65,535 Denominator LSB 00000000 and 00000000: M[15:8] and M[7:0] = 0 ... 00000000 and 11111101: M[15:8] and M[7:0] = 125 ... 11111111 and 11111111: M[15:8] and M[7:0] = 65,535 Numerator MSB 00000000 and 00000000: N[15:8] and N[7:0] = 0 ... 00000000 and 00001100: N[15:8] and N[7:0] = 12 ... 11111111 and 11111111: N[15:8] and N[7:0] = 65,535 Numerator LSB 00000000 and 00000000: N[15:8] and N[7:0] = 0 ... 00000000 and 00001100: N[15:8] and N[7:0] = 12 ... 11111111 and 11111111: N[15:8] and N[7:0] = 65,535 Reserved Integer 0010: R = 2 0011: R = 3 0100: R = 4 0101: R = 5 0110: R = 6 0111: R = 7 1000: R = 8 Input divider 00: no division 01: divide by X = 2 10: divide by X = 3 11: divide by X = 4 PLL type 0: integer-N 1: fractional Reserved PLL lock (read only) 0: unlocked 1: locked (sticky bit) PLL enable 0: disabled 1: enabled Default 00000111
[39:32]
01010011
[31:24]
00000010
[23:16]
10000111
15 [14:11]
0011
[10:9]
00
8
1
[7:2] 1
1
0
1
Rev. 0 | Page 46 of 84
ADAU1382
Table 33. Fractional PLL Parameter Settings for fS = 44.1 kHz (fS = 44.1 kHz, Core Clock = 256 x 44.1 kHz, PLL Clock = 45.1584 MHz)
MCLK Input (MHz) 12 13 14.4 19.2 19.68 19.8 Input Divider (X) 1 1 1 1 1 1 Integer (R) 3 3 3 2 2 2 Denominator (M) 625 8125 125 125 2035 1375 Numerator (N) 477 3849 17 44 302 386
Table 34. Fractional PLL Parameter Settings for fS = 48 kHz (fS = 48 kHz, Core Clock = 256 x 48 kHz, PLL Clock = 49.152 MHz)
MCLK Input (MHz) 12 13 14.4 19.2 19.68 19.8 Input Divider (X) 1 1 1 1 1 1 Integer (R) 4 3 3 2 2 2 Denominator (M) 125 1625 75 25 205 825 Numerator (N) 12 1269 31 14 102 398
Rev. 0| Page 47 of 84
ADAU1382
RECORD PATH CONFIGURATION
Register 16392 (0x4008), Digital Microphone and Analog Beep Control
This register controls the digital microphone settings and the analog beep input gain.
Bit 3, Beep Input Mute
This bit mutes the beep input.
Bits[2:0], Beep Input Gain
This bit controls the gain setting for the analog beep input; it defaults at 0 dB and can be set as high as 32 dB. The beep signal must be enabled in Register 16400 (0x4010), microphone bias control and beep enable.
Bits[5:4], Digital Microphone Enable
These bits control the enable function for the stereo digital microphones. The analog front end is powered down when using a digital microphone.
Table 35. Digital Microphone and Analog Beep Control Register
Bits [7:6] [5:4] Description Reserved Digital microphone enable 00: disabled 01: MICD1 enabled 10: MICD2 enabled 11: reserved Beep input mute 0: muted 1: unmuted Beep input gain. Note that Setting 100 sets the input beep gain to -23 dB. 000: 0 dB 001: +6 dB 010: +10 dB 011: +14 dB 100: -23 dB 101: +20 dB 110: +26 dB 111: +32 dB Default 00
3
0
[2:0]
000
Rev. 0 | Page 48 of 84
ADAU1382
Register 16393 (0x4009), Record Power Management
This register manages the power consumption for the record path. In particular, the current distribution for the mixer boosts, ADC, front-end mixer, and PGAs can be set in one of four modes. The four modes of operation available that affect the performance of the device are normal operation, power saving, enhanced performance, and extreme power saving. Normal operation has a base current of 2.5 A, enhanced performance has a base current of 3 A, power saving has a base current of a 2 A, and extreme power saving has a base current of 1.5 A. Enhanced performance offers the highest performance, but with the trade-off of higher power consumption.
Bits[6:5], Mixer Amplifier Boost
These bits set the power mode of operation for the front-end mixer boost. With higher AVDD1 levels, distortion may become an issue affecting performance. Each boost level enhances the THD + N performance at 3.3 V AVDD1.
Bits[4:3], ADC Bias Control
These bits set the bias current for the ADCs based on the mode of operation selected.
Bits[2:1], Front-End Bias Control
These bits set the bias current for the PGAs and mixers in the front-end record path.
Table 36. Record Power Management Register
Bits 7 [6:5] Description Reserved Mixer amplifier boost 00: normal operation 01: Boost Level 1 10: Boost Level 2 11: Boost Level 3 ADC bias control 00: normal operation 01: extreme power saving 10: power saving 11: enhanced performance Front-end bias control 00: normal operation 01: extreme power saving 10: power saving 11: enhanced performance Reserved Default 00
[4:3]
00
[2:1]
00
0
Rev. 0| Page 49 of 84
ADAU1382
Register 16398 (0x400E), Record Gain Left PGA
The record gain left PGA control register controls the left channel input PGA. This register configures the input for either differential or single-ended signals and sets the left channel input recording volume. input pin (LMICP) is disabled, and the complementary input of the PGA is switched to common mode.
Bit 1, Record Path Left Mute
This bit mutes the left channel input PGA.
Bits[7:5], Left Input Gain
These bits set the left channel analog microphone input PGA gain.
Bit 0, Left PGA Enable
This bit enables the left channel input PGA
Bit 2, Single-Ended Left Input Enable
If this bit is high (enabled), a single-ended input can be input on the LMIC pin and gained by the PGA. The positive differential
Table 37. Record Gain Left PGA Register
Bits [7:5] Description Left input gain 000: 0 dB 001: 6 dB 010: 10 dB 011: 14 dB 100: 17 dB 101: 20 dB 110: 26 dB 111: 32 dB Reserved Single-ended left input enable 0: disabled 1: enabled Record path left mute 0: muted 1: unmuted Left PGA enable 0: disabled 1: enabled Default 000
[4:3] 2
0
1
0
0
0
Rev. 0 | Page 50 of 84
ADAU1382
Register 16399 (0x400F), Record Gain Right PGA
The record gain right PGA control register controls the right channel input PGA. This register configures the input for either differential or single-ended signals and sets the right channel input recording volume. input pin (RMICP) is disabled, and the complementary input of the PGA is switched to common mode.
Bit 1, Record Path Right Mute
This bit mutes the entire right channel input PGA.
Bits[7:5], Right Input Gain
These bits set the right channel analog microphone input PGA gain.
Bit 0, Right PGA Enable
This bit enables the right channel PGA.
Bit 2, Single-Ended Right Input Enable
If this bit is high (enabled), a single-ended input can be input on the RMIC pin and gained by the PGA. The positive differential
Table 38. Record Gain Right PGA Register
Bits [7:5] Description Right input gain 000: 0 dB 001: 6 dB 010: 10 dB 011: 14 dB 100: 17 dB 101: 20 dB 110: 26 dB 111: 32 dB Reserved Single-ended right input enable 0: disabled 1: enabled Record path right mute 0: muted 1: unmuted Right PGA enable 0: disabled 1: enabled Default 000
[4:3] 2
0
1
0
0
0
Rev. 0| Page 51 of 84
ADAU1382
Register 16400 (0x4010), Microphone Bias Control and Beep Enable Bit 4, Beep Input Enable
This bit enables the beep signal, which is input to the BEEP pin. Setting this bit to 0 mutes the beep signal for all output paths.
Bit 2, Microphone Gain
Provides two voltage bias options, 0.65 x AVDD1 and 0.90 x AVDD1. A higher bias contributes to a higher microphone gain. The maximum current that can be drawn from MICBIAS is 5 mA.
Bit 0, Microphone Bias Enable
This bit enables the MICBIAS output.
Bit 3, Microphone High Performance
This bit puts the microphone bias into high performance mode, by offering more current to the microphone.
Table 39. Microphone Bias Control and Beep Enable Register
Bits [7:5] 4 Description Reserved Beep input enable 0: disabled 1: enabled Microphone high performance 0: high power 1: low performance Microphone gain 0: enabled 1: disabled Reserved Microphone bias enable 0: disabled 1: enabled Default 0
3
0
2
0
1 0
0
Rev. 0 | Page 52 of 84
ADAU1382
SERIAL PORT CONFIGURATION
Register 16405 (0x4015), Serial Port Control 0 Bit 5, LRCLK Mode
This bit sets the serial port frame clock (LRCLK) as either a 50% duty cycle waveform or a pulse synchronization waveform. When in slave mode, the pulse should be at least 1 BCLK cycle wide to guarantee proper data transfer.
Bits[2:1], Channels per Frame
These bits set the number of channels contained in the data stream (see Figure 58). The possible choices are stereo (used in standard I2S signals), TDM 4 (a 4-channel time division multiplexed stream), or TDM 8 (an 8-channel time division multiplexed stream). The TDM output modes are simply multichannel data streams, and the data pin does not become high impedance during periods when it is not outputting data. Within a TDM stream, channels are grouped by pair, as shown in Figure 59.
Bit 4, BCLK Polarity
This bit sets the polarity of the bit clock (BCLK) signal. This setting determines whether the data and frame clock signals change on a rising (+) or falling (-) edge of the BCLK signal (see Figure 56). Standard I2S signals use negative BCLK polarity.
Bit 0, Serial Data Port Mode
This bit sets the clock pins as either master or slave. Both LRCLK and BCLK are the bus master of the serial port when master mode is enabled.
Bit 3, LRCLK Polarity
The polarity of LRCLK determines whether the left stereo channel is initiated on a rising (+) or falling (-) edge of the LRCLK signal (see Figure 57). Standard I2S signals use negative LRCLK polarity.
Table 40. Serial Port Control 0 Register
Bits [7:6] 5 Description Reserved LRCLK mode 0: 50% duty cycle clock 1: pulse mode; pulse should be at least 1 BCLK wide BCLK polarity 0: data changes on falling (-) edge 1: data changes on rising (+) edge LRCLK polarity 0: left frame starts on falling (-) edge 1: left frame starts on rising (+) edge Channels per frame 00: stereo (two channels) 01: TDM 4 (four channels) 10: TDM 8 (eight channels) 11: reserved Serial data port mode 0: slave 1: master Default 0
4
0
3
0
[2:1]
00
0
0
Rev. 0| Page 53 of 84
ADAU1382
BCLK POLARITY LRCLK BCLK SDATA
LRCLK BCLK SDATA
08427-055
Figure 56. Serial Port BCLK Polarity
LRCLK POLARITY LRCLK
08427-056
L LRCLK
R
L
R
L
R
Figure 57. Serial Port LRCLK Polarity
1/fLRCLK LRCLK
STEREO CHANNELS
1
2
TDM 4 CHANNELS
1
2
3
4
08427-057 08427-058
TDM 8 CHANNELS
1
2
3
4
5
6
7
8
Figure 58. Channels per Frame
1/fLRCLK LRCLK
FIRST PAIR TDM 4 CHANNELS 1 2 3
SECOND PAIR 4
FIRST PAIR TDM 8 CHANNELS 1 2
SECOND PAIR 3 4 5
THIRD PAIR 6
FOURTH PAIR 7 8
Figure 59. TDM Channel Pairs
Rev. 0 | Page 54 of 84
ADAU1382
Register 16406 (0x4016), Serial Port Control 1 Bits[7:5], Number of Bit Clock Cycles per Frame
These bits set the number of BCLK cycles contained in one LRCLK period. The frequency of BCLK is calculated as the number of bit clock cycles per frame times the sample rate of the serial port in hertz. Figure 60 and Figure 61 show examples of different settings for these bits.
Bit 2, MSB Position
This bit sets the bit-level endianness (or bit order) of the data stream. A setting of 0 results in a big-endian order, with the MSB coming first in the stream and the LSB coming last. A setting of 1 results in a little-endian order, with the LSB coming first in the stream and the MSB coming last. Figure 64 shows examples of the two settings with a 24-bit audio stream in an MSB delay-by-0 configuration. In Figure 64, M stands for MSB, and L stands for LSB.
Bit 4, ADC Channel Position in TDM
This register sets the order of the ADC channels when output on the serial output port. A setting of 0 puts the left channel first in its respective TDM channel pair. A setting of 1 puts the right channel first in its respective TDM channel pair. This bit should be set in conjunction with Register 16408 (0x4018), Converter Control 1, Bits[1:0], on-chip ADC data selection in TDM mode, to select where the data should appear in the TDM stream. Figure 62 shows a setting of 0, and Figure 63 shows a setting of 1.
Bits[1:0], Data Delay from LRCLK Edge
These bits set the delay between the LRCLK edge and the first data bit in the stream. The I2S standard is a delay of one BCLK cycle. Examples of different data delay settings are shown in Figure 65, with a 64 BCLK cycle per frame, 24-bit audio data, big-endian bit order configuration. In Figure 65, M represents the most significant bit of the audio channel's data, and L represents the least significant bit. The first example setting (delay by 0) in Figure 65 represents a leftjustified mode because the least significant bit aligns with the beginning of the audio frame. The third example setting (delay by 8) represents a right-justified mode because the least significant bit aligns with the end of the audio frame. A delay-by-16 setting would not be valid in this mode because the audio data would exceed the boundaries of the frame clock period. Figure 66 shows an example of delay by 16 for a 16-bit audio stream with 64 BCLK cycles per frame.
Bit 3, DAC Channel Position in TDM
This register sets the order of the DAC channels when output on the serial output port. A setting of 0 puts the left channel first in its respective TDM channel pair. A setting of 1 puts the right channel first in its respective TDM channel pair. This bit should be set in conjunction with Register 16407 (0x4017), Converter Control 0, Bits[6:5], on-chip DAC data selection in TDM mode, to select where the data should appear in the TDM stream. Figure 62 shows a setting of 0, and Figure 63 shows a setting of 1. Table 41. Serial Port Control 1 Register
Bits [7:5] Description Number of bit clock cycles per frame 000: 64 001: 32 010: 48 011: 128 100: 256 101: reserved 110: reserved 111: reserved ADC channel position in TDM 0: left first 1: right first DAC channel position in TDM 0: left first 1: right first MSB position 0: MSB first 1: MSB last Data delay from LRCLK edge 00: 1 BCLK cycle 01: 0 BCLK cycles 10: 8 BCLK cycles 11: 16 BCLK cycles
Default 000
4
0
3
0
2
0
[1:0]
00
Rev. 0| Page 55 of 84
ADAU1382
1/fLRCLK LRCLK
08427-059
BCLK
1
2
3
4
5
6
7
8
9
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Figure 60. Example: 32 BCLK Cycles per Frame
1/fLRCLK LRCLK
08427-060
BCLK
1
2
3
4
5
6
7
8
9
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
Figure 61. Example: 48 BCLK Cycles per Frame
1/fLRCLK LRCLK
FIRST PAIR TDM 4 CHANNELS LEFT RIGHT LEFT
SECOND PAIR RIGHT
TDM 8 CHANNELS
LEFT
RIGHT
LEFT
RIGHT
LEFT
RIGHT
LEFT
RIGHT
Figure 62. Left First Channel Selection in TDM
1/fLRCLK LRCLK
FIRST PAIR TDM 4 CHANNELS RIGHT LEFT RIGHT
SECOND PAIR LEFT
TDM 8 CHANNELS
RIGHT
LEFT
RIGHT
LEFT
RIGHT
LEFT
RIGHT
LEFT
Figure 63. Right First Channel Selection in TDM
BCLK
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
MSB FIRST
M
L
LSB FIRST
L
M
Figure 64. MSB Position Settings
Rev. 0 | Page 56 of 84
08427-063
08427-062
FIRST PAIR
SECOND PAIR
THIRD PAIR
FOURTH PAIR
08427-061
FIRST PAIR
SECOND PAIR
THIRD PAIR
FOURTH PAIR
ADAU1382
1/fLRCLK LRCLK BCLK SERIAL DATA (DELAY BY 0) SERIAL DATA (DELAY BY 1) SERIAL DATA (DELAY BY 8)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
M
L
M
L
M
L
M
L
08427-064
08427-065
M
L
M
L
Figure 65. Serial Audio Data Delay Example Settings
1/fLRCLK LRCLK BCLK SERIAL DATA (DELAY BY 16)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
M
L
M
L
Figure 66. Serial Audio Data Delay by 16 Example
Rev. 0| Page 57 of 84
ADAU1382
AUDIO CONVERTER CONFIGURATION
Register 16407 (0x4017), Converter Control 0 Bits[6:5], On-Chip DAC Data Selection in TDM Mode
These bits set the position of the DAC input channels on a TDM stream. In TDM 4 mode, valid settings are first pair or second pair. In TDM 8 mode, valid settings are first pair, second pair, third pair, or fourth pair. These bits should be set in conjunction with Register 16406 (0x4016), Serial Port Control 1, Bit 3, DAC channel position in TDM, to select where the data should appear in the TDM stream. Figure 67, Figure 68, and Figure 69 show examples of different TDM settings.
Bit 4, DAC Oversampling Ratio
This bit sets the oversampling ratio of the DAC relative to the audio sample rate. The higher rate yields slightly better audio quality but increases power consumption.
Bit 3, ADC Oversampling Ratio
This bit sets the oversampling ratio of the ADC relative to the audio sample rate. The higher rate yields slightly better audio quality but increases power consumption.
Bits[2:0], Converter Sampling Rate
These bits set the sampling rate of the audio ADCs and DACs relative to the sound engine's audio sample rate.
Table 42. Converter Control 0 Register
Bits 7 [6:5] Description Reserved On-chip DAC data selection in TDM mode 00: first pair 01: second pair 10: third pair 11: fourth pair DAC oversampling ratio 0: 128 1: 64 ADC oversampling ratio 0: 128 1: 64 Converter sampling rate; the numbers in parentheses are example values for a base sample rate of 48 kHz 000: fS (48 kHz) 001: fS/6 (8 kHz) 010: fS/4 (12 kHz) 011: fS/3 (16 kHz) 100: fS/2 (24 kHz) 101: fS/1.5 (32 kHz) 110: fS x 2 (96 kHz) 111: reserved Default 00
4
0
3
0
[2:0]
000
Rev. 0 | Page 58 of 84
ADAU1382
1/fLRCLK LRCLK
FIRST PAIR TDM 4 CHANNELS LEFT RIGHT
SECOND PAIR
TDM 8 CHANNELS
LEFT
RIGHT
Figure 67. Example of Left Channel First, First Pair TDM Setting
1/fLRCLK LRCLK
FIRST PAIR TDM 4 CHANNELS RIGHT
SECOND PAIR LEFT
TDM 8 CHANNELS
RIGHT
LEFT
Figure 68. Example of Right Channel First, Second Pair TDM Setting
1/fLRCLK LRCLK FIRST PAIR TDM 8 CHANNELS SECOND PAIR THIRD PAIR FOURTH PAIR LEFT RIGHT
Figure 69. Example of Left Channel First, Fourth Pair TDM Setting
Rev. 0| Page 59 of 84
08427-068
08427-067
FIRST PAIR
SECOND PAIR
THIRD PAIR
FOURTH PAIR
08427-066
FIRST PAIR
SECOND PAIR
THIRD PAIR
FOURTH PAIR
ADAU1382
Register 16408 (0x4018), Converter Control 1 Bits[1:0], On-Chip ADC Data Selection in TDM Mode
These bits set the position of the ADC output channels on a TDM stream. In TDM 4 mode, valid settings are first pair or second pair. In TDM 8 mode, valid settings are first pair, second pair, third pair, or fourth pair. These bits should be set in conjunction with Register 16406 (0x4016), Serial Port Control 1, Bit 4, ADC channel position in TDM, to select where the data should appear in the TDM stream. Figure 67, Figure 68, and Figure 69 show examples of different TDM settings.
Table 43. Converter Control 1 Register
Bits [7:2] [1:0] Description Reserved On-chip ADC data selection in TDM mode 00: first pair 01: second pair 10: third pair 11: fourth pair Default 00
Rev. 0 | Page 60 of 84
ADAU1382
Register 16409 (0x4019), ADC Control Bit 6, Invert Input Polarity
This bit enables an optional polarity inverter in the ADC path, which is an amplifier with a gain of -1, representing a 180 phase shift.
Bit 3, Digital Microphone Channel Swap
This bit allows the left and right channels of the digital microphone input to swap. Standard mode is the left channel on the rising edge and the right channel on the falling edge. Swapped mode is the right channel on the rising edge and the left channel on the falling edge.
Bit 5, High-Pass Filter Select
This bit enables an optional high-pass filter in the ADC path, with a cutoff frequency of 2 Hz when fS = 48 kHz. The cutoff frequency scales linearly with fS.
Bit 2, Digital Microphone Input Select
This bit must be enabled to use the digital microphone inputs. When this bit is asserted, the on-chip ADCs are off, BCLK is the master at 128 x fS, and ADC_SDATA is expected to have the left and right channels interleaved. This bit must be disabled to use the ADCs.
Bit 4, Digital Microphone Data Polarity Swap
This bit inverts the polarity of valid data states for the digital microphone data stream. A typical PDM microphone can drive its data output pin either high or low, not both. This bit must be configured accordingly to recognize a valid output state of the microphone. The default is negative, meaning that a digital logic low signal is recognized by the ADAU1382 as a pulse in the PDM signal.
Bits[1:0], ADC Enable
These bits must be configured to use the ADCs. ADC channels can be enabled or disabled individually.
Table 44. ADC Control Register
Bits 7 6 Description Reserved Invert input polarity 0: normal 1: inverted High-pass filter select 0: disabled 1: enabled Digital microphone data polarity swap 0: negative 1: positive Digital microphone channel swap 0: standard mode 1: swapped mode Digital microphone input select 0: digital microphone input off 1: select digital microphone input, ADCs off ADC enable 00: both off 01: left on 10: right on 11: both on Default 0
5
0
4
0
3
0
2
0
[1:0]
00
Rev. 0| Page 61 of 84
ADAU1382
Register 16410 (0x401A), Left ADC Attenuator Bits[7:0], Left ADC Digital Attenuator
These bits control a 256-step, logarithmically spaced volume control from 0 dB to -95.625 dB, in increments of 0.375 dB. When a new value is entered into this register, the volume control slews gradually to the new value, avoiding pops and clicks in the process. The slew ramp is logarithmic, incrementing 0.375 dB per audio frame.
Register 16411 (0x401B), Right ADC Attenuator Bits[7:0], Right ADC Digital Attenuator
These bits control a 256-step, logarithmically spaced volume control from 0 dB to -95.625 dB, in increments of 0.375 dB. When a new value is entered into this register, the volume control slews gradually to the new value, avoiding pops and clicks in the process. The slew ramp is logarithmic, incrementing 0.375 dB per audio frame.
Table 45. Left ADC Attenuator Register
Bits [7:0] Description Left ADC digital attenuator; attenuation is in increments of 0.375 dB with each step of slewing 00000000: 0 dB 00000001: -0.375 dB 00000010: -0.75 dB ... 11111110: -95.25 dB 11111111: -95.625 dB Default 00000000
Table 46. Right ADC Attenuator Register
Bits [7:0] Description Right ADC digital attenuator; attenuation is in increments of 0.375 dB with each step of slewing 00000000: 0 dB 00000001: -0.375 dB 00000010: -0.75 dB ... 11111110: -95.25 dB 11111111: -95.625 dB Default 00000000
Rev. 0 | Page 62 of 84
ADAU1382
PLAYBACK PATH CONFIGURATION
Register 16412 (0x401C), Playback Mixer Left Control Bit 5, Left DAC Mute
This bit mutes the left DAC output. It does not have any slew and is updated immediately when the register write has been completed. This results in an abrupt cutoff of the audio output and should therefore be preceded by a soft mute in the sound engine or a slew mute using the DAC attenuator.
Register 16414 (0x401E), Playback Mixer Right Control Bit 6, Right DAC Mute
This bit mutes the right DAC output. It does not have any slew and is updated immediately when the register write has been completed. This results in an abrupt cutoff of the audio output and should therefore be preceded by a soft mute in the sound engine or a slew mute using the DAC attenuator.
Bits[4:1], Right Playback Beep Gain
These bits set the gain of the beep signal in the right playback path. If the zero-crossing detector is activated, the change in gain is applied on the next detected zero crossing or when the timeout period expires, whichever comes first. The gain control is in 3 dB increments and should not be incremented more than 3 dB at a time in order to avoid audible artifacts on the output.
Bits[4:1], Left Playback Beep Gain
These bits set the gain of the beep signal in the left playback path. If the zero-crossing detector is activated, the change in gain is applied on the next detected zero crossing or when the timeout period expires, whichever comes first. The gain control is in 3 dB increments and should not be incremented more than 3 dB at a time in order to avoid audible artifacts on the output.
Table 47. Playback Mixer Left Control Register
Bits [7:6] 5 Description Reserved Left DAC mute 0: muted 1: unmuted Left playback beep gain 0000: muted 0001: -15 dB 0010: -12 dB 0011: -9 dB 0100: -6 dB 0101: -3 dB 0110: 0 dB 0111: +3 dB 1000: +6 dB Reserved Default 0
[4:1]
0000
0
Table 48. Playback Mixer Right Control Register
Bits 7 6 Description Reserved Right DAC mute 0: muted 1: unmuted Reserved Right playback beep gain 0000: muted 0001: -15 dB ... 1000: +6 dB Reserved Default 0
5 [4:1]
0000
0
Rev. 0| Page 63 of 84
ADAU1382
Register 16415 (0x401F), Playback Mono Mixer Control Bit 7, Left DAC Mute
This bit mutes the left DAC output, but does not power down the DAC. Use of this bit does not result in power savings.
Register 16416 (0x4020), Playback Clamp Amp Control
The playback clamp amp is an amplifier on the line output path. If the line outputs are muted using Register 16421 (0x4025), left line output mute, or Register 16422 (0x4026), right line output mute, this amplifier serves to maintain a common-mode voltage on the line output pins. This helps to avoid a pop or click when the line outputs are reenabled.
Bit 6, Right DAC Mute
This bit mutes the right DAC output, but does not power down the DAC. Use of this bit does not result in power savings.
Bit 1, Clamp Amplifier Power Saving Mode
The clamp amplifier has two operating modes: high power mode and low power mode. The high power mode has more current available to maintain a stable common-mode voltage on the output pins. The low power mode may be slightly less stable, depending on operating conditions, but saves several microamps.
Bits[5:2], Mono Playback Beep Gain
These bits set the gain of the beep output signal in mono mode. If the zero-crossing detector is active, then the gain change takes place on the next zero crossing in the beep signal or when the timeout occurs, whichever comes first.
Bit 0, Mono Output Mute
This bit mutes the mono line output.
Bit 0, Clamp Amplifier Control
This bit enables or disables the clamp amp. It is enabled by default. The clamp amp should usually be enabled in systems where the line outputs are used.
Table 49. Playback Mono Mixer Control Register
Bits 7 Description Left DAC mute 0: muted 1: unmuted Right DAC mute 0: muted 1: unmuted Mono playback beep gain 0000: muted 0001: -15 dB 0010: -12 dB 0011: -9 dB 0100: -6 dB 0101: -3 dB 0110: 0 dB 0111: +3 dB 1000: +6 dB Reserved Mono output mute (active low) 0: muted 1: unmuted Default 0
6
0
[5:2]
0000
1 0
0
Table 50. Playback Clamp Amplifier Control Register
Bits [7:2] 1 Description Reserved Clamp amplifier power saving mode 0: high power 1: low power Clamp amplifier control 0: enabled 1: disabled Default 1
0
0
Rev. 0 | Page 64 of 84
ADAU1382
Register 16421 (0x4025), Left Line Output Mute Bit 1, Left Line Output Mute
This bit mutes the left line output. It does not have any effect on the speaker outputs.
Register 16422 (0x4026), Right Line Output Mute Bit 1, Right Line Output Mute
This bit mutes the right line output. It does not have any effect on the speaker outputs.
Table 51. Left Line Output Mute Register
Bits [7:2] 1 Description Reserved Left line output mute (active low) 0: muted 1: unmuted Reserved Default 0
0
Table 52. Right Line Output Mute Register
Bits [7:2] 1 Description Reserved Right line output mute (active low) 0: muted 1: unmuted Reserved Default 0
0
Rev. 0| Page 65 of 84
ADAU1382
Register 16423 (0x4027), Playback Speaker Output Control Bits[7:6], Speaker Output Gain Control
These bits control the gain of the speaker output. In general, this parameter should be tuned at a system level, set once during system initialization and not altered during operation of the system.
Register 16424 (0x4028), Beep Zero-Crossing Detector Control Bits[4:3], Detector Timeout
The timeout detector waits the specified amount of time for a beep zero crossing before forcing the mute or unmute in the playback path beep gains (that is, the left playback beep gain, right playback beep gain, and mono playback beep gain).
Bit 0, Speaker Output Enable
This bit enables the speaker output. It initiates the speaker powerup and power-down sequences shown in Figure 35 and Figure 36.
Bit 0, Zero-Crossing Detector Enable
This bit enables the zero-crossing detector. Disabling the beep zero-crossing detector may cause clicks and pops on the output when using the beep path.
Table 53. Playback Speaker Output Control Register
Bits [7:6] Description Speaker output gain control 00: 0 dB 01: 2 dB 10: 4 dB 11: 6 dB Reserved Speaker output enable 0: disabled 1: enabled Default 00
[5:1] 0
0
Table 54. Beep Zero-Crossing Detector Control Register
Bits [7:5] [4:3] Description Reserved Detector timeout 00: 20 ms 01: 10 ms 10: 5 ms 11: 2.5 ms Reserved Zero-crossing detector enable 0: disabled 1: enabled Default 11
[2:1] 0
1
Rev. 0 | Page 66 of 84
ADAU1382
Register 16425 (0x4029), Playback Power Management
This register controls the unity current supplied to each functional block described. Within the functional blocks, the current can be multiplied. Normal operation has a base current of 2.5 A, enhanced performance has a base current of 3 A, power saving has a base current of 2 A, and extreme power saving has a base current of 1.5 A. Enhanced performance mode offers the best audio quality but also uses the most current.
Bits[5:4], DAC Bias Control
These bits control the amount of unity bias current allotted to the DAC.
Bits[3:2], Back-End Bias Control
These bits control the amount of unity bias current allotted to the playback mixers and amplifiers.
Bit 1, Back-End Right Enable
This bit enables the playback mixers and amplifiers.
Bit [7:6], Speaker Amplifier Bias Control
These bits control the amount of unity bias current allotted to the speaker amplifier.
Bit 0, Back-End Left Enable
This bit enables the playback mixers and amplifiers.
Table 55. Playback Power Management Register
Bits [7:6] Description Speaker amplifier bias control 00: normal operation 01: power saving 10: enhanced performance 00: reserved DAC bias control 00: normal operation 01: extreme power saving 10: power saving 00: enhanced performance Back-end bias control 00: normal operation 01: extreme power saving 10: power saving 00: enhanced performance Back-end right enable 0: disabled 1: enabled Back-end left enable 0: disabled 1: enabled Default 00
[5:4]
00
[3:2]
00
1
0
0
0
Rev. 0| Page 67 of 84
ADAU1382
Register 16426 (0x402A), DAC Control Bits[7:6], Mono Mode
These bits control the output mode of the DAC. Setting these bits to 00 outputs two distinct channels, left and right. Setting these bits to 01 outputs the left input channel on both the left and right outputs, and the right input channel is lost. Setting these bits to 10 outputs the right input channel on both the left and right outputs, and the left input channel is lost. Setting these bits to 11 mixes the left and right input channels and outputs the mixed mono signal on both the left and right outputs.
Bit 5, Invert Input Polarity
This bit applies a gain of -1, or a 180 phase shift, to the DAC output signal.
Bit 2, DAC De-Emphasis Filter Enable
This bit enables a de-emphasis filter and should be used when a preemphasized signal is input to the DACs.
Bits[1:0], DAC Enable
These bits allow the DACs to be individually enabled or disabled. Disabling unused DACs can result in significant power savings.
Table 56. DAC Control Register
Bits [7:6] Description Mono mode 00: stereo output 01: both output left channel 10: both output right channel 11: both output left/right mix Invert input polarity 0: normal 1: inverted Reserved DAC de-emphasis filter enable 0: disabled 1: enabled DAC enable 00: both off 01: left on 10: right on 11: both on Default 00
5
0
[4:3] 2
0
[1:0]
00
Rev. 0 | Page 68 of 84
ADAU1382
Register 16427 (0x402B), Left DAC Attenuator Bits[7:0], Left DAC Digital Attenuator
These bits control a 256-step, logarithmically spaced volume control from 0 dB to -95.625 dB, in increments of 0.375 dB. When a new value is entered into this register, the volume control slews gradually to the new value, avoiding pops and clicks in the process. The slew ramp is logarithmic, incrementing 0.375 dB per audio frame.
Register 16428 (0x402C), Right DAC Attenuator Bits[7:0], Right DAC Digital Attenuator
These bits control a 256-step, logarithmically spaced volume control from 0 dB to -95.625 dB, in increments of 0.375 dB. When a new value is entered into this register, the volume control slews gradually to the new value, avoiding pops and clicks in the process. The slew ramp is logarithmic, incrementing 0.375 dB per audio frame.
Table 57. Left DAC Attenuator Register
Bits [7:0] Description Left DAC digital attenuator, in increments of 0.375 dB with each step of slewing 00000000: 0 dB 00000001: -0.375 dB 00000010: -0.75 dB ... 11111110: -95. 25 11111111: -95.625 dB Default 00000000
Table 58. Right DAC Attenuator Register
Bits [7:0] Description Right DAC digital attenuator, in increments of 0.375 dB with each step of slewing 00000000: 0 dB 00000001: -0.375 dB 00000010: -0.75 dB ... 11111110: -95. 25 11111111: -95.625 dB Default 00000000
Rev. 0| Page 69 of 84
ADAU1382
PAD CONFIGURATION
Figure 70 shows a block diagram of the pad design for the GPIO/serial port and communications port pins.
DIGITAL I/O SUPPLY SUPPLY DATA OUT LEVEL SHIFTER OUTPUT CONTROL LOGIC
OUTPUT ENABLE OUTPUT PULL-UP ENABLE (CONTROLS PMOS)
DEBOUNCE ENABLE
INPUT ENABLE
PULL-UP ENABLE 6x
DATA IN
DEBOUNCE
LEVEL SHIFTER
INPUT ESD 12x PULL-DOWN ENABLE
PAD
WEAK PULL-UP ENABLE WEAK PULL-DOWN ENABLE DRIVE STRENGTH (CONTROLS NUMBER OF PARALLEL TRANSISTOR PAIRS) IOVDD = 3.3V; LOW = 2.0mA, HIGH = 4.0mA IOVDD = 1.8V; LOW = 0.75mA, HIGH = 1.5mA LEVEL SHIFTER
WEAK PULL-UP/PULL-DOWN 240k NOMINAL 190k WORST CASE
Figure 70. Pad Configuration, Internal Design
Rev. 0 | Page 70 of 84
08427-069
ADAU1382
Register 16429 (0x402D), Serial Port Pad Control 0 Bits[7:6], ADC_SDATA Pad Pull-Up/Pull-Down
These bits enable or disable a weak pull-up or pull-down device on the pad. The effective resistance of the pull-up or pull-down is nominally 240 k.
Bits[3:2], LRCLK Pad Pull-Up/Pull-Down
These bits enable or disable a weak pull-up or pull-down device on the pad. The effective resistance of the pull-up or pull-down is nominally 240 k.
Bits[1:0], BCLK Pad Pull-Up/Pull-Down
These bits enable or disable a weak pull-up or pull-down device on the pad. The effective resistance of the pull-up or pull-down is nominally 240 k.
Bits[5:4], DAC_SDATA Pad Pull-Up/Pull-Down
These bits enable or disable a weak pull-up or pull-down device on the pad. The effective resistance of the pull-up or pull-down is nominally 240 k.
Table 59. Serial Port Pad Control 0 Register
Bits [7:6] Description ADC_SDATA pad pull-up/pull-down 00: pull-up 01: reserved 10: none (default) 11: pull-down DAC_SDATA pad pull-up/pull-down 00: pull-up 01: reserved 10: none (default) 11: pull-down LRCLK pad pull-up/pull-down 00: pull-up 01: reserved 10: none (default) 11: pull-down BCLK pad pull-up/pull-down 00: pull-up 01: reserved 10: none (default) 11: pull-down Default 11
[5:4]
11
[3:2]
11
[1:0]
11
Rev. 0| Page 71 of 84
ADAU1382
Register 16430 (0x402E), Serial Port Pad Control 1 Bit 3, ADC_SDATA Pin Drive Strength
This bit sets the drive strength of the ADC_SDATA pin. Low mode yields 2 mA when IOVDD = 3.3 V, or 0.75 mA when IOVDD = 1.8 V. High mode yields 4 mA when IOVDD = 3.3 V, or 1.5 mA when IOVDD = 1.8 V.
Bit 1, LRCLK Pin Drive Strength
This bit sets the drive strength of the LRCLK pin. Low mode yields 2 mA when IOVDD = 3.3 V, or 0.75 mA when IOVDD = 1.8 V. High mode yields 4 mA when IOVDD = 3.3 V, or 1.5 mA when IOVDD = 1.8 V.
Bit 0, BCLK Pin Drive Strength
This bit sets the drive strength of the BCLK pin. Low mode yields 2 mA when IOVDD = 3.3 V, or 0.75 mA when IOVDD = 1.8 V. High mode yields 4 mA when IOVDD = 3.3 V, or 1.5 mA when IOVDD = 1.8 V.
Bit 2, DAC_SDATA Pin Drive Strength
This bit sets the drive strength of the DAC_SDATA pin. Low mode yields 2 mA when IOVDD = 3.3 V, or 0.75 mA when IOVDD = 1.8 V. High mode yields 4 mA when IOVDD = 3.3 V, or 1.5 mA when IOVDD = 1.8 V.
Table 60. Serial Port Pad Control 1 Register
Bits [7:4] 3 Description Reserved ADC_SDATA pin drive strength 0: low 1: high DAC_SDATA pin drive strength 0: low 1: high LRCLK pin drive strength 0: low 1: high BCLK pin drive strength 0: low 1: high Default 0
2
0
1
0
0
0
Rev. 0 | Page 72 of 84
ADAU1382
Register 16431 (0x402F), Communication Port Pad Control 0 Bits[7:6], CDATA Pad Pull-Up/Pull-Down
These bits enable or disable a weak pull-up or pull-down device on the pad. The effective resistance of the pull-up or pull-down is nominally 240 k.
Bits[3:2], SCL/CCLK Pad Pull-Up/Pull-Down
These bits enable or disable a weak pull-up or pull-down device on the pad. The effective resistance of the pull-up or pull-down is nominally 240 k.
Bits[1:0], SDA/COUT Pad Pull-Up/Pull-Down
These bits enable or disable a weak pull-up or pull-down device on the pad. The effective resistance of the pull-up or pull-down is nominally 240 k.
Bits[5:4], CLATCH Pad Pull-Up/Pull-Down
These bits enable or disable a weak pull-up or pull-down device on the pad. The effective resistance of the pull-up or pull-down is nominally 240 k.
Table 61. Communication Port Pad Control 0 Register
Bits [7:6] Description CDATA pad pull-up/pull-down 00: pull-up 01: reserved 10: none (default) 11: pull-down CLATCH pad pull-up/pull-down 00: pull-up 01: reserved 10: none (default) 11: pull-down SCL/CCLK pad pull-up/pull-down 00: pull-up 01: reserved 10: none (default) 11: pull-down SDA/COUT pad pull-up/pull-down 00: pull-up 01: reserved 10: none (default) 11: pull-down Default 11
[5:4]
00
[3:2]
11
[1:0]
11
Rev. 0| Page 73 of 84
ADAU1382
Register 16432 (0x4030), Communication Port Pad Control 1 Bit 3, CDATA Pin Drive Strength
This bit sets the drive strength of the CDATA pin. Low mode yields 2 mA when IOVDD = 3.3 V, or 0.75 mA when IOVDD = 1.8 V. High mode yields 4 mA when IOVDD = 3.3 V, or 1.5 mA when IOVDD = 1.8 V.
Bit 1, SCL/CCLK Pin Drive Strength
This bit sets the drive strength of the SCL/CCLK pin. Low mode yields 2 mA when IOVDD = 3.3 V, or 0.75 mA when IOVDD = 1.8 V. High mode yields 4 mA when IOVDD = 3.3 V, or 1.5 mA when IOVDD = 1.8 V.
Bit 0, SDA/COUT Pin Drive Strength
This bit sets the drive strength of the SDA/COUT pin. Low mode yields 2 mA when IOVDD = 3.3 V, or 0.75 mA when IOVDD = 1.8 V. High mode yields 4 mA when IOVDD = 3.3 V, or 1.5 mA when IOVDD = 1.8 V.
Bit 2, CLATCH Pin Drive Strength
This bit sets the drive strength of the CLATCH pin. Low mode yields 2 mA when IOVDD = 3.3 V, or 0.75 mA when IOVDD = 1.8 V. High mode yields 4 mA when IOVDD = 3.3 V, or 1.5 mA when IOVDD = 1.8 V.
Table 62. Communication Port Pad Control 1 Register
Bits [7:4] 3 Description Reserved CDATA pin drive strength 0: low 1: high CLATCH pin drive strength 0: low 1: high SCL/CCLK pin drive strength 0: low 1: high SDA/COUT pin drive strength 0: low 1: high Default 0
2
0
1
0
0
0
Rev. 0 | Page 74 of 84
ADAU1382
Register 16433 (0x4031), MCKO Control Bit 2, MCKO Pin Drive Strength
This bit sets the drive strength of the MCKO pin. Low mode yields 2 mA when IOVDD = 3.3 V, or 0.75 mA when IOVDD = 1.8 V. High mode yields 4 mA when IOVDD = 3.3 V, or 1.5 mA when IOVDD = 1.8 V.
Bit 1, MCKO Pull-Up Enable
This bit enables or disables a weak pull-up device on the pad. The effective resistance of the pull-up is nominally 240 k.
Bit 0, MCKO Pull-Down Enable
This bit enables or disables a weak pull-down device on the pad. The effective resistance of the pull-down is nominally 240 k.
Table 63. MCKO Control Register
Bits [7:3] 2 Description Reserved MCKO pin drive strength 0: low 1: high MCKO pull-up enable (active low) 0: pull-down disabled 1: pull-down enabled MCKO pull-down enable 0: pull-down disabled 1: pull-down enabled Default 0
1
0
0
1
Rev. 0| Page 75 of 84
ADAU1382
DIGITAL SUBSYSTEM CONFIGURATION
Register 16512 (0x4080), Digital Power-Down 0 Bit 7, ADC Engine
Setting this bit to 0 disables the ADCs and the digital microphone inputs.
Bit 3, Serial Output Routing
Setting this bit to 0 disables the routing paths for the record signal path, which goes from the sound engine to the serial port output.
Bit 2, Serial Input Routing
Setting this bit to 0 disables the routing paths for the playback signal path, which goes from the serial input ports to the sound engine.
Bit 6, Memory Controller
Setting this bit to 0 disables all memory access, which disables the sound engine, ADCs, and DACs, as well as prohibits memory access via the control port.
Bit 1, Serial Port, ADC, DAC, and Frame Pulse Clock Generator
Setting this bit to 0 disables the internal clock generator, which generates all master clocks for the serial ports, sound engine, ADCs, and DACs. This bit must be enabled if audio is being passed through the ADAU1382.
Bit 5, Clock Domain Transfer
Setting this bit to 0--in conjunction with Bit 4, serial ports-- disables the serial ports.
Bit 4, Serial Ports
Setting this bit to 0--in conjunction with Bit 5, clock domain transfer--disables the serial ports.
Bit 0, Sound Engine
Setting this bit to 0 disables the sound engine and makes the memory inaccessible. This bit must be enabled in order to process audio and change parameter values.
Table 64. Digital Power-Down 0 Register
Bit 7 Description ADC engine 0: disabled 1: enabled Memory controller 0: disabled 1: enabled Clock domain transfer (when using the serial ports) 0: disabled 1: enabled Serial ports 0: disabled 1: enabled Serial output routing 0: disabled 1: enabled Serial input routing 0: disabled 1: enabled Serial port, ADC, DAC, and frame pulse clock generator 0: disabled 1: enabled Sound engine 0: disabled 1: enabled Default 0
6
0
5
0
4
0
3
0
2
0
1
0
0
0
Rev. 0 | Page 76 of 84
ADAU1382
Register 16513 (0x4081), Digital Power-Down 1 Bit 3, Output Precharge
The output precharge system allows the outputs to be biased before they are enabled and prevents pops or clicks from appearing on the output. This bit should be set to 1 at all times.
Bit 1, Digital Microphone
Setting this bit to 0 disables the digital microphone input.
Bit 0, DAC Engine
Setting this bit to 0 disables the DACs.
Bit 2, Zero-Crossing Detector
Setting this bit to 0 disables the zero-crossing detector for beep playback.
Table 65. Digital Power-Down 1 Register
Bit [7:4] 3 Description Reserved Output precharge 0: disabled 1: enabled Zero-crossing detector 0: disabled 1: enabled Digital microphone 0: disabled 1: enabled DAC engine 0: disabled 1: enabled Default 1
2
1
1
0
0
0
Rev. 0| Page 77 of 84
ADAU1382
Register 16582 to Register 16586 (0x40C6 to 0x40CA), GPIO Pin Control Bits[3:0], GPIO Pin Function
The GPIO pin control register sets the functionality of each GPIO pin as depicted in Table 67. GPIO0 to GPIO3 use the same pins as the serial port and must be enabled in Register 16628 (0x40F4), serial data/GPIO pin configuration. Pin 7 is a dedicated GPIO. The GPIO pin can be set directly by the sound engine and therefore should be set as 1011 or 1100 (outputs set by the sound engine). In order for GPIO0 through GPIO3 to be used, they should be configured as 1001 or 1010 (outputs set by the I2C/SPI port). There are five GPIO pin value registers that allow the input/output data value of the GPIO pin to be written to or read directly from the control port. The corresponding addresses are listed in Table 68. Each value register contains four bytes and can store only one of two values: logic high or logic low. Logic high is stored as 0x00, 0x80, 0x00, 0x00. Logic low is stored as 0x00, 0x00, 0x00, 0x00.
Table 66. GPIO Pin Control Register
Decimal 16582 16583 16584 16585 16586 Address Hex 0x40C6 0x40C7 0x40C8 0x40C9 0x40CA Register GPIO pin control GPIO0 control GPIO1 control GPIO2 control GPIO3 control Bits [7:4] [3:0] [7:4] [3:0] [7:4] [3:0] [7:4] [3:0] [7:4] [3:0] Description Reserved Dedicated GPIO (Pin 7) function (see Table 67) Reserved GPIO0 pin function (see Table 67) Reserved GPIO1 pin function (see Table 67) Reserved GPIO2 pin function (see Table 67) Reserved GPIO3 pin function (see Table 67) Default 1100 1100 1100 1100 1100
Table 67. GPIO Pin Functions
GPIO Bits[3:0] 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 GPIO Pin Function Input without debounce Input with debounce (0.3 ms) Input with debounce (0.6 ms) Input with debounce (0.9 ms) Input with debounce (5 ms) Input with debounce (10 ms) Input with debounce (20 ms) Input with debounce (40 ms) Input controlled by I2C/SPI port Output set by I2C/SPI port with pull-up Output set by I2C/SPI port without pull-up Output set by engine with pull-up Output set by engine without pull-up Reserved Output CRC error (sticky) Output watchdog error (sticky)
Register 1000 to Register 1004 (0x03E8 to 0x03EC), GPIO Pin Value
Table 68. Addresses of GPIO Pin Value Registers
Decimal 1000 1001 1002 1003 1004 Address Hex 0x03E8 0x03E9 0x03EA 0x03EB 0x03EC Register GPIO pin value, GPIO GPIO pin value, GPIO0 GPIO pin value, GPIO1 GPIO pin value, GPIO2 GPIO pin value, GPIO3
Rev. 0 | Page 78 of 84
ADAU1382
Register 16617 and Register 16618 (0x40E9 and 0x40EA), Nonmodulo
These registers set the boundary for the nonmodulo RAM space used by the sound engine. An appropriate value is automatically loaded to this register during initialization. It should not be modified for any reason.
Register 16619 (0x40EB), Sound Engine Frame Rate Bits[3:0], Sound Engine Frame Rate
These bits set the frequency of the frame start pulse, which is delivered to the sound engine to begin processing on each audio frame. It effectively determines the sample rate of audio in the sound engine. This register should always be set to none at least one frame prior to disabling Register 16630 (0x40F6), sound engine run, Bit 0, sound engine run, to allow the sound engine to finish processing the current frame before halting.
Table 69. Nonmodulo Registers
Bit [31:0] Description Reserved
Table 70. Sound Engine Frame Rate Register
Bit [7:4] [3:0] Description Reserved Sound engine frame rate 0000: fS x 2 (96 kHz) 0001: fS (48 kHz) 0010: fS/1.5 (32 kHz) 0011: fS/2 (24 kHz) 0100: fS/3 (16 kHz) 0101: fS/4 (12 kHz) 0110: fS/6 (8 kHz) 0111: serial data input rate 1000: serial data output rate 1001: fS x 4 (192 kHz) 1010: none ... 1111: none Default 0000
Rev. 0| Page 79 of 84
ADAU1382
Register 16626 (0x40F2), Serial Input Route Control Bits[3:0], Input Routing
These bits select which serial data input channels are routed to the DACs (see Figure 71). Table 71. Serial Input Route Control Register
Bits [7:4] [3:0] Description Reserved Input routing 0000: serial input to sound engine to DACs 0001: serial input [L0, R0] 1 to DACs [L, R] 0010: reserved 0011: serial input [L1, R1]1 to DACs [L, R] 0100: reserved 0101: serial input [L2, R2]1 to DACs [L, R] 0110: reserved 0111: serial input [L3, R3]1 to DACs [L, R] 1000: reserved 1001: serial input [R0, L0]1 to DACs [L, R] 1010: reserved 1011: serial input [R1, L1]1 to DACs [L, R] 1100: reserved 1101: serial input [R2, L2]1 to DACs [L, R] 1110: reserved 1111: serial input [R3, L3]1 to DACs [L, R] Default 0000
1
Lx = left side of Channel x; Rx = right side of Channel x.
Rev. 0 | Page 80 of 84
ADAU1382
Register 16627 (0x40F3), Serial Output Route Control Bits[3:0], Output Routing
These bits select where the ADC outputs are routed in the serial data stream (see Figure 71). Table 72. Serial Output Route Control Register
Bits [7:4] [3:0] Description Reserved Output routing 0000: ADCs to sound engine to serial outputs 0001: ADCs [L, R] to serial output [L0, R0] 1 0010: reserved 0011: ADCs [L, R] to serial output [L1, R1]1 0100: reserved 0101: ADCs [L, R] to serial output [L2, R2]1 0110: reserved 0111: ADCs [L, R] to serial output [L3, R3]1 1000: reserved 1001: ADCs [L, R] to serial output [R0, L0]1 1010: reserved 1011: ADCs [L, R] to serial output [R1, L1]1 1100: reserved 1101: ADCs [L, R] to serial output [R2, L2]1 1110: reserved 1111: ADCs [L, R] to serial output [R3, L3]1 Default 0000
1
Lx = left side of Channel x; Rx = right side of Channel x.
1/fLRCLK LRCLK
STEREO CHANNELS
L0
R0
TDM 4 CHANNELS
L0
R0
L1
R1
08427-070
TDM 8 CHANNELS
L0
R0
L1
R1
L2
R2
L3
R3
Figure 71. Serial Port Routing Control
Rev. 0| Page 81 of 84
ADAU1382
Register 16628 (0x40F4), Serial Data/GPIO Pin Configuration Bits[3:0], GPIO[0:3]
The serial data/GPIO pin configuration register controls the functionality of the serial data port pins. If the bits in this register are set to 1, then the GPIO[0:3] pins become GPIO interfaces to the sound engine. If these bits are set to 0, they remain LRCLK, BCLK, or serial port data pins, respectively. Before going into standby mode, the following sequence must be performed: 1. 2. 3. Set the sound engine frame rate in Register 16619 to 0x7F (none). Wait 3 ms. Set the sound engine run bit in Register 16630 to 0x00.
Register 16630 (0x40F6), Sound Engine Run Bit 0, Sound Engine Run
This bit, in conjunction with the sound engine frame rate, initiates audio processing in the sound engine. When this bit is enabled, the program counter begins to increment when a new frame of audio data is input to the sound engine. When this bit is disabled, the sound engine goes into standby mode.
When reenabling the sound engine run bit, the following sequence must be followed: 1. 2. Set the sound engine frame rate in Register 16619 to an appropriate value. Set the sound engine run bit in Register 16630 to 0x01.
Register 16632 (0x40F8), Serial Port Sampling Rate Bits[2:0], Serial Port Control Sampling Rate
These bits set the serial port sampling rate as a function of the audio sampling rate, fS. In most applications, the serial port sampling rate, sound engine sampling rate, and ADC and DAC sampling rates should be equal.
Table 73. Serial Data/GPIO Pin Configuration Register
Bits [7:4] 3 Description Reserved GPIO0 0: LRCLK 1: GPIO enabled GPIO1 0: BCLK 1: GPIO enabled GPIO2 0: serial data output 1: GPIO enabled GPIO3 0: serial data input 1: GPIO enabled Default 0
2
0
1
0
0
0
Table 74. Sound Engine Run Register
Bits [7:1] 0 Description Reserved Sound engine run 0: sound engine standby 1: run the sound engine Default 0
Table 75. Serial Port Sampling Rate Register
Bits [7:3] [2:0] Description Reserved Serial port control sampling rate 000: fS/1 (48 kHz) 001: fS/6 (8 kHz) 010: fS/4 (12 kHz) 011: fS/3 (16 kHz) 100: fS/2 (24 kHz) 101: fS/1.5 (32 kHz) 110: fS/0.5 (96 kHz) 111: reserved
Rev. 0 | Page 82 of 84
Default 000
ADAU1382 OUTLINE DIMENSIONS
5.00 BSC SQ 0.60 MAX 0.60 MAX
25 24 32 1
PIN 1 INDICATOR
PIN 1 INDICATOR TOP VIEW 4.75 BSC SQ
0.50 BSC
EXPOSED PAD (BOTTOM VIEW)
3.65 3.50 SQ 3.35
8
0.50 0.40 0.30
17 16
9
0.25 MIN 3.50 REF
12 MAX
0.80 MAX 0.65 TYP 0.05 MAX 0.02 NOM
1.00 0.85 0.80
COMPLIANT TO JEDEC STANDARDS MO-220-VHHD-2
Figure 72. 32-Lead Lead Frame Chip Scale Package [LFCSP_VQ] 5 mm x 5 mm Body, Very Thin Quad (CP-32-4) Dimensions shown in millimeters
ORDERING GUIDE
Model ADAU1382BCPZ 1 ADAU1382BCPZ-R71 EVAL-ADAU1382Z1
1
Temperature Range -25C to +85C -25C to +85C
Package Description 32-Lead LFCSP_VQ 32-Lead LFCSP_VQ, 7" Tape and Reel Evaluation Board
Package Option CP-32-4 CP-32-4
Z = RoHS Compliant Part.
Rev. 0| Page 83 of 84
100608-A
SEATING PLANE
0.30 0.23 0.18
0.20 REF
COPLANARITY 0.08
FOR PROPER CONNECTION OF THE EXPOSED PAD, REFER TO THE PIN CONFIGURATION AND FUNCTION DESCRIPTIONS SECTION OF THIS DATA SHEET.
ADAU1382 NOTES
Purchase of licensed I2C components of Analog Devices or one of its sublicensed Associated Companies conveys a license for the purchaser under the Philips I2C Patent Rights to use these components in an I2C system, provided that the system conforms to the I2C Standard Specification as defined by Philips.
(c)2009 Analog Devices, Inc. All rights reserved. Trademarks and registered trademarks are the property of their respective owners. D08427-0-10/09(0)
Rev. 0 | Page 84 of 84


▲Up To Search▲   

 
Price & Availability of EVAL-ADAU1382Z

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X